OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
SubField.hpp
Go to the documentation of this file.
1// -*- C++ -*-
2/***************************************************************************
3 *
4 * The IPPL Framework
5 *
6 * This program was prepared by PSI.
7 * All rights in the program are reserved by PSI.
8 * Neither PSI nor the author(s)
9 * makes any warranty, express or implied, or assumes any liability or
10 * responsibility for the use of this software
11 *
12 * Visit www.amas.web.psi for more details
13 *
14 ***************************************************************************/
15
16// -*- C++ -*-
17/***************************************************************************
18 *
19 * The IPPL Framework
20 *
21 *
22 * Visit http://people.web.psi.ch/adelmann/ for more details
23 *
24 ***************************************************************************/
25
26// include files
27#include "SubField/SubField.h"
29#include "Field/Field.h"
30
31
32
34// assignment of a scalar
35template<class T, unsigned int Dim, class M, class C, class S>
37
38 assign(*this, t);
39}
40
41
43// assignment of another subfield
44template<class T, unsigned int Dim, class M, class C, class S>
47
48 assign(*this, s);
49 return *this;
50}
51
52/***************************************************************************
53 * $RCSfile: SubField.cpp,v $ $Author: adelmann $
54 * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $
55 * IPPL_VERSION_ID: $Id: SubField.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $
56 ***************************************************************************/
void assign(const BareField< T, Dim > &a, RHS b, OP op, ExprTag< true >)
void operator=(T)
Definition: SubField.hpp:36