processorGAMGInterfaceField.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef processorGAMGInterfaceField_H
00037 #define processorGAMGInterfaceField_H
00038
00039 #include "GAMGInterfaceField.H"
00040 #include "processorGAMGInterface.H"
00041 #include "processorLduInterfaceField.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 class processorGAMGInterfaceField
00053 :
00054 public GAMGInterfaceField,
00055 public processorLduInterfaceField
00056 {
00057
00058
00059
00060 const processorGAMGInterface& procInterface_;
00061
00062
00063 bool doTransform_;
00064
00065
00066 int rank_;
00067
00068
00069
00070
00071
00072 processorGAMGInterfaceField(const processorGAMGInterfaceField&);
00073
00074
00075 void operator=(const processorGAMGInterfaceField&);
00076
00077
00078 public:
00079
00080
00081 TypeName("processor");
00082
00083
00084
00085
00086
00087 processorGAMGInterfaceField
00088 (
00089 const GAMGInterface& GAMGCp,
00090 const lduInterfaceField& fineInterface
00091 );
00092
00093
00094
00095
00096 virtual ~processorGAMGInterfaceField();
00097
00098
00099
00100
00101
00102
00103
00104 label size() const
00105 {
00106 return procInterface_.size();
00107 }
00108
00109
00110
00111
00112
00113 virtual void initInterfaceMatrixUpdate
00114 (
00115 const scalarField& psiInternal,
00116 scalarField& result,
00117 const lduMatrix& m,
00118 const scalarField& coeffs,
00119 const direction cmpt,
00120 const Pstream::commsTypes commsType
00121 ) const;
00122
00123
00124 virtual void updateInterfaceMatrix
00125 (
00126 const scalarField& psiInternal,
00127 scalarField& result,
00128 const lduMatrix&,
00129 const scalarField& coeffs,
00130 const direction cmpt,
00131 const Pstream::commsTypes commsType
00132 ) const;
00133
00134
00135
00136
00137
00138 virtual int myProcNo() const
00139 {
00140 return procInterface_.myProcNo();
00141 }
00142
00143
00144 virtual int neighbProcNo() const
00145 {
00146 return procInterface_.neighbProcNo();
00147 }
00148
00149
00150 virtual bool doTransform() const
00151 {
00152 return doTransform_;
00153 }
00154
00155
00156 virtual const tensorField& forwardT() const
00157 {
00158 return procInterface_.forwardT();
00159 }
00160
00161
00162 virtual int rank() const
00163 {
00164 return rank_;
00165 }
00166 };
00167
00168
00169
00170
00171 }
00172
00173
00174
00175 #endif
00176
00177
Copyright © 2000-2009 OpenCFD Ltd