Changeset 3417 for issm/trunk/src/c/objects/Matpar.cpp
- Timestamp:
- 04/07/10 12:23:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Matpar.cpp
r3332 r3417 18 18 19 19 /*Object constructors and destructor*/ 20 /*FUNCTION Matpar:: constructor {{{1*/20 /*FUNCTION Matpar::default constructor {{{1*/ 21 21 Matpar::Matpar(){ 22 22 return; 23 23 } 24 24 /*}}}1*/ 25 /*FUNCTION Matpar::c reation{{{1*/25 /*FUNCTION Matpar::constructorr {{{1*/ 26 26 Matpar::Matpar(int matpar_mid, double matpar_rho_ice, double matpar_rho_water, double matpar_heatcapacity, double matpar_thermalconductivity, double matpar_latentheat, double matpar_beta, double matpar_meltingpoint, double matpar_mixed_layer_capacity, double matpar_thermal_exchange_velocity, double matpar_g){ 27 27 28 29 mid=matpar_mid; 30 rho_ice=matpar_rho_ice; 31 rho_water=matpar_rho_water; 32 heatcapacity=matpar_heatcapacity; 33 thermalconductivity=matpar_thermalconductivity; 34 latentheat=matpar_latentheat; 35 beta=matpar_beta; 36 meltingpoint=matpar_meltingpoint; 37 mixed_layer_capacity=matpar_mixed_layer_capacity; 38 thermal_exchange_velocity=matpar_thermal_exchange_velocity; 39 g=matpar_g; 28 this->Init(matpar_mid, matpar_rho_ice, matpar_rho_water, matpar_heatcapacity, matpar_thermalconductivity, matpar_latentheat, matpar_beta, matpar_meltingpoint, matpar_mixed_layer_capacity, matpar_thermal_exchange_velocity, matpar_g); 29 30 } 31 /*}}}1*/ 32 /*FUNCTION Matpar::constructor from iomodel{{{1*/ 33 Matpar::Matpar(IoModel* iomodel){ 34 35 int matpar_mid; 36 double matpar_rho_ice; 37 double matpar_rho_water; 38 double matpar_heatcapacity; 39 double matpar_thermalconductivity; 40 double matpar_latentheat; 41 double matpar_beta; 42 double matpar_meltingpoint; 43 double matpar_mixed_layer_capacity; 44 double matpar_thermal_exchange_velocity; 45 double matpar_g; 46 47 matpar_mid=iomodel->numberofelements+1; //put it at the end of the materials 48 matpar_g=iomodel->g; 49 matpar_rho_ice=iomodel->rho_ice; 50 matpar_rho_water=iomodel->rho_water; 51 matpar_thermalconductivity=iomodel->thermalconductivity; 52 matpar_heatcapacity=iomodel->heatcapacity; 53 matpar_latentheat=iomodel->latentheat; 54 matpar_beta=iomodel->beta; 55 matpar_meltingpoint=iomodel->meltingpoint; 56 matpar_mixed_layer_capacity=iomodel->mixed_layer_capacity; 57 matpar_thermal_exchange_velocity=iomodel->thermal_exchange_velocity; 58 59 this->Init(matpar_mid, matpar_rho_ice, matpar_rho_water, matpar_heatcapacity, matpar_thermalconductivity, matpar_latentheat, matpar_beta, matpar_meltingpoint, matpar_mixed_layer_capacity, matpar_thermal_exchange_velocity, matpar_g); 60 61 } 62 /*}}}1*/ 63 /*FUNCTION Matpar::Init {{{1*/ 64 Matpar::Init(int matpar_mid, double matpar_rho_ice, double matpar_rho_water, double matpar_heatcapacity, double matpar_thermalconductivity, double matpar_latentheat, double matpar_beta, double matpar_meltingpoint, double matpar_mixed_layer_capacity, double matpar_thermal_exchange_velocity, double matpar_g){ 65 66 this->mid=matpar_mid; 67 this->rho_ice=matpar_rho_ice; 68 this->rho_water=matpar_rho_water; 69 this->heatcapacity=matpar_heatcapacity; 70 this->thermalconductivity=matpar_thermalconductivity; 71 this->latentheat=matpar_latentheat; 72 this->beta=matpar_beta; 73 this->meltingpoint=matpar_meltingpoint; 74 this->mixed_layer_capacity=matpar_mixed_layer_capacity; 75 this->thermal_exchange_velocity=matpar_thermal_exchange_velocity; 76 this->g=matpar_g; 40 77 41 78 return;
Note:
See TracChangeset
for help on using the changeset viewer.