00001 // -*- C++ -*- 00002 /*************************************************************************** 00003 * 00004 * The IPPL Framework 00005 * 00006 * This program was prepared by PSI. 00007 * All rights in the program are reserved by PSI. 00008 * Neither PSI nor the author(s) 00009 * makes any warranty, express or implied, or assumes any liability or 00010 * responsibility for the use of this software 00011 * 00012 * Visit http://www.acl.lanl.gov/POOMS for more details 00013 * 00014 ***************************************************************************/ 00015 00016 // -*- C++ -*- 00017 /*************************************************************************** 00018 * 00019 * The IPPL Framework 00020 * 00021 * 00022 * Visit http://people.web.psi.ch/adelmann/ for more details 00023 * 00024 ***************************************************************************/ 00025 00026 // include files 00027 #include "SubField/SubField.h" 00028 #include "SubField/SubFieldTraits.h" 00029 #include "Field/Field.h" 00030 #include "Profile/Profiler.h" 00031 00032 00034 // assignment of a scalar 00035 template<class T, unsigned int Dim, class M, class C, class S> 00036 void SubField<T,Dim,M,C,S>::operator=(T t) { 00037 TAU_TYPE_STRING(taustr, CT(*this) + "void (" + CT(t) + " )" ); 00038 TAU_PROFILE("SubBareField::operator=()", taustr, 00039 TAU_SUBFIELD | TAU_ASSIGN); 00040 assign(*this, t); 00041 } 00042 00043 00045 // assignment of another subfield 00046 template<class T, unsigned int Dim, class M, class C, class S> 00047 SubField<T,Dim,M,C,S>& 00048 SubField<T,Dim,M,C,S>::operator=(const SubField<T,Dim,M,C,S> &s) { 00049 TAU_TYPE_STRING(taustr, CT(*this) + " (" + CT(s) + " )" ); 00050 TAU_PROFILE("SubBareField::operator=()", taustr, 00051 TAU_SUBFIELD | TAU_ASSIGN); 00052 00053 assign(*this, s); 00054 return *this; 00055 } 00056 00057 /*************************************************************************** 00058 * $RCSfile: SubField.cpp,v $ $Author: adelmann $ 00059 * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $ 00060 * IPPL_VERSION_ID: $Id: SubField.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $ 00061 ***************************************************************************/