Changeset 20827 for issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp
- Timestamp:
- 06/28/16 15:51:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp
r20690 r20827 179 179 180 180 /*Object virtual functions definitions:*/ 181 Object* Matpar::copy() {/*{{{*/ 182 183 /*Output*/ 184 Matpar* matpar; 185 186 /*Initialize output*/ 187 matpar=new Matpar(*this); 188 189 /*copy fields: */ 190 matpar->mid=this->mid; 191 matpar->rho_ice=this->rho_ice; 192 matpar->rho_water=this->rho_water; 193 matpar->rho_freshwater=this->rho_freshwater; 194 matpar->mu_water=this->mu_water; 195 matpar->heatcapacity=this->heatcapacity; 196 matpar->thermalconductivity=this->thermalconductivity; 197 matpar->temperateiceconductivity=this->temperateiceconductivity; 198 matpar->latentheat=this->latentheat; 199 matpar->beta=this->beta; 200 matpar->meltingpoint=this->meltingpoint; 201 matpar->referencetemperature=this->referencetemperature; 202 matpar->mixed_layer_capacity=this->mixed_layer_capacity; 203 matpar->thermal_exchange_velocity=this->thermal_exchange_velocity; 204 matpar->g=this->g; 205 matpar->desfac=this->desfac; 206 matpar->rlaps=this->rlaps; 207 matpar->rlapslgm=this->rlapslgm; 208 matpar->dpermil=this->dpermil; 209 210 matpar->sediment_compressibility=this->sediment_compressibility; 211 matpar->sediment_porosity=this->sediment_porosity; 212 matpar->sediment_thickness=this->sediment_thickness; 213 matpar->water_compressibility=this->water_compressibility; 214 215 matpar->epl_compressibility=this->epl_compressibility; 216 matpar->epl_porosity=this->epl_porosity; 217 matpar->epl_init_thickness=this->epl_init_thickness; 218 matpar->epl_colapse_thickness=this->epl_colapse_thickness; 219 matpar->epl_max_thickness=this->epl_max_thickness; 220 matpar->epl_conductivity=this->epl_conductivity; 221 222 matpar->lithosphere_shear_modulus=this->lithosphere_shear_modulus; 223 matpar->lithosphere_density=this->lithosphere_density; 224 matpar->mantle_shear_modulus=this->mantle_shear_modulus; 225 matpar->mantle_density=this->mantle_density; 226 227 matpar->earth_density=this->earth_density; 228 229 return matpar; 230 } 231 /*}}}*/ 232 void Matpar::DeepEcho(void){/*{{{*/ 233 234 this->Echo(); 235 } 236 /*}}}*/ 181 237 void Matpar::Echo(void){/*{{{*/ 182 238 … … 204 260 } 205 261 /*}}}*/ 206 void Matpar::DeepEcho(void){/*{{{*/207 208 this->Echo();209 }210 /*}}}*/211 262 int Matpar::Id(void){ return mid; }/*{{{*/ 212 /*}}}*/213 int Matpar::ObjectEnum(void){/*{{{*/214 215 return MatparEnum;216 217 }218 /*}}}*/219 Object* Matpar::copy() {/*{{{*/220 221 /*Output*/222 Matpar* matpar;223 224 /*Initialize output*/225 matpar=new Matpar(*this);226 227 /*copy fields: */228 matpar->mid=this->mid;229 matpar->rho_ice=this->rho_ice;230 matpar->rho_water=this->rho_water;231 matpar->rho_freshwater=this->rho_freshwater;232 matpar->mu_water=this->mu_water;233 matpar->heatcapacity=this->heatcapacity;234 matpar->thermalconductivity=this->thermalconductivity;235 matpar->temperateiceconductivity=this->temperateiceconductivity;236 matpar->latentheat=this->latentheat;237 matpar->beta=this->beta;238 matpar->meltingpoint=this->meltingpoint;239 matpar->referencetemperature=this->referencetemperature;240 matpar->mixed_layer_capacity=this->mixed_layer_capacity;241 matpar->thermal_exchange_velocity=this->thermal_exchange_velocity;242 matpar->g=this->g;243 matpar->desfac=this->desfac;244 matpar->rlaps=this->rlaps;245 matpar->rlapslgm=this->rlapslgm;246 matpar->dpermil=this->dpermil;247 248 matpar->sediment_compressibility=this->sediment_compressibility;249 matpar->sediment_porosity=this->sediment_porosity;250 matpar->sediment_thickness=this->sediment_thickness;251 matpar->water_compressibility=this->water_compressibility;252 253 matpar->epl_compressibility=this->epl_compressibility;254 matpar->epl_porosity=this->epl_porosity;255 matpar->epl_init_thickness=this->epl_init_thickness;256 matpar->epl_colapse_thickness=this->epl_colapse_thickness;257 matpar->epl_max_thickness=this->epl_max_thickness;258 matpar->epl_conductivity=this->epl_conductivity;259 260 matpar->lithosphere_shear_modulus=this->lithosphere_shear_modulus;261 matpar->lithosphere_density=this->lithosphere_density;262 matpar->mantle_shear_modulus=this->mantle_shear_modulus;263 matpar->mantle_density=this->mantle_density;264 265 matpar->earth_density=this->earth_density;266 267 return matpar;268 }269 263 /*}}}*/ 270 264 void Matpar::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ … … 328 322 } 329 323 /*}}}*/ 324 int Matpar::ObjectEnum(void){/*{{{*/ 325 326 return MatparEnum; 327 328 } 329 /*}}}*/ 330 330 331 331 /*Update virtual functions definitions:*/ 332 void Matpar::InputUpdateFromVector(IssmDouble* vector, int name, int type){/*{{{*/333 /*Nothing updated yet*/334 }335 /*}}}*/336 void Matpar::InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){/*{{{*/337 /*Nothing updated yet*/338 }339 /*}}}*/340 void Matpar::InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols,int name, int type){/*{{{*/341 /*Nothing updated yet*/342 }343 /*}}}*/344 332 void Matpar::InputUpdateFromConstant(IssmDouble constant, int name){/*{{{*/ 345 333 … … 410 398 /*}}}*/ 411 399 void Matpar::InputUpdateFromConstant(bool constant, int name){/*{{{*/ 400 /*Nothing updated yet*/ 401 } 402 /*}}}*/ 403 void Matpar::InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols,int name, int type){/*{{{*/ 404 /*Nothing updated yet*/ 405 } 406 /*}}}*/ 407 void Matpar::InputUpdateFromVector(IssmDouble* vector, int name, int type){/*{{{*/ 408 /*Nothing updated yet*/ 409 } 410 /*}}}*/ 411 void Matpar::InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){/*{{{*/ 412 412 /*Nothing updated yet*/ 413 413 }
Note:
See TracChangeset
for help on using the changeset viewer.