$treeview $search $mathjax
|
Palabos
Version 1.1
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /* This file is part of the Palabos library. 00002 * 00003 * Copyright (C) 2011 FlowKit Sarl 00004 * Avenue de Chailly 23 00005 * 1012 Lausanne, Switzerland 00006 * E-mail contact: contact@flowkit.com 00007 * 00008 * The most recent release of Palabos can be downloaded at 00009 * <http://www.palabos.org/> 00010 * 00011 * The library Palabos is free software: you can redistribute it and/or 00012 * modify it under the terms of the GNU Affero General Public License as 00013 * published by the Free Software Foundation, either version 3 of the 00014 * License, or (at your option) any later version. 00015 * 00016 * The library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Affero General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Affero General Public License 00022 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00029 #ifndef NON_LOCAL_TRANSFER_2D_HH 00030 #define NON_LOCAL_TRANSFER_2D_HH 00031 00032 #include "core/globalDefs.h" 00033 #include "multiBlock/nonLocalTransfer2D.h" 00034 #include <vector> 00035 00036 namespace plb { 00037 00038 template<typename T> 00039 void copyNonLocal ( 00040 MultiScalarField2D<T> const& from, MultiScalarField2D<T>& to, Box2D const& domain ) 00041 { 00042 copyNonLocal_generic(from, to, domain, modif::staticVariables); 00043 } 00044 00045 template<typename T> 00046 void copy ( 00047 MultiScalarField2D<T> const& from, Box2D const& fromDomain, 00048 MultiScalarField2D<T>& to, Box2D const& toDomain ) 00049 { 00050 copy_generic(from, fromDomain, to, toDomain, modif::staticVariables); 00051 } 00052 00053 template<typename T> 00054 void copyNonLocal ( 00055 MultiNTensorField2D<T> const& from, MultiNTensorField2D<T>& to, Box2D const& domain ) 00056 { 00057 copyNonLocal_generic(from, to, domain, modif::staticVariables); 00058 } 00059 00060 template<typename T> 00061 void copy ( 00062 MultiNTensorField2D<T> const& from, Box2D const& fromDomain, 00063 MultiNTensorField2D<T>& to, Box2D const& toDomain ) 00064 { 00065 copy_generic(from, fromDomain, to, toDomain, modif::staticVariables); 00066 } 00067 00068 template<typename T, int nDim> 00069 void copyNonLocal ( 00070 MultiTensorField2D<T,nDim> const& from, MultiTensorField2D<T,nDim>& to, Box2D const& domain ) 00071 { 00072 copyNonLocal_generic(from, to, domain, modif::staticVariables); 00073 } 00074 00075 template<typename T, int nDim> 00076 void copy ( 00077 MultiTensorField2D<T,nDim> const& from, Box2D const& fromDomain, 00078 MultiTensorField2D<T,nDim>& to, Box2D const& toDomain ) 00079 { 00080 copy_generic(from, fromDomain, to, toDomain, modif::staticVariables); 00081 } 00082 00083 template<typename T, template<typename U> class Descriptor> 00084 void copyNonLocal ( 00085 MultiBlockLattice2D<T,Descriptor> const& from, 00086 MultiBlockLattice2D<T,Descriptor>& to, 00087 Box2D const& domain, modif::ModifT whichContent ) 00088 { 00089 copyNonLocal_generic(from, to, domain, whichContent); 00090 } 00091 00092 template<typename T, template<typename U> class Descriptor> 00093 void copy ( 00094 MultiBlockLattice2D<T,Descriptor> const& from, Box2D const& fromDomain, 00095 MultiBlockLattice2D<T,Descriptor>& to, Box2D const& toDomain, 00096 modif::ModifT whichContent ) 00097 { 00098 copy_generic(from, fromDomain, to, toDomain, whichContent); 00099 } 00100 00101 template<typename T, template<typename U> class Descriptor> 00102 void copyPopulations ( 00103 MultiBlockLattice2D<T,Descriptor> const& from, Box2D const& fromDomain, 00104 MultiBlockLattice2D<T,Descriptor>& to, Box2D const& toDomain ) 00105 { 00106 copy(from, fromDomain, to, toDomain, modif::staticVariables); 00107 } 00108 00109 template<typename T, template<typename U> class Descriptor> 00110 void copyAll ( 00111 MultiBlockLattice2D<T,Descriptor> const& from, Box2D const& fromDomain, 00112 MultiBlockLattice2D<T,Descriptor>& to, Box2D const& toDomain ) 00113 { 00114 copy(from, fromDomain, to, toDomain, modif::allVariables); 00115 } 00116 00117 template<typename T, template<typename U> class Descriptor> 00118 void copyRegenerate ( 00119 MultiBlockLattice2D<T,Descriptor> const& from, Box2D const& fromDomain, 00120 MultiBlockLattice2D<T,Descriptor>& to, Box2D const& toDomain ) 00121 { 00122 copy(from, fromDomain, to, toDomain, modif::dataStructure); 00123 } 00124 00125 } // namespace plb 00126 00127 #endif // NON_LOCAL_TRANSFER_2D_HH
1.6.3
1.6.3