Changeset 820


Ignore:
Timestamp:
06/05/09 15:00:52 (16 years ago)
Author:
seroussi
Message:

need a matpar in prognostic for transient solution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Prognostic/CreateElementsNodesAndMaterialsPrognostic.cpp

    r816 r820  
    339339                        elements->AddObject(penta);
    340340       
    341 
    342341                        #ifdef _PARALLEL_
    343342                        /*Now that we are here, we can also start building the list of grids belonging to this node partition: we use
     
    396395        #endif
    397396
     397        /*Add one constant material property to materials: */
     398        matpar_mid=1; //put it at the end of the materials
     399        matpar_g=model->g;
     400        matpar_rho_ice=model->rho_ice;
     401        matpar_rho_water=model->rho_water;
     402        matpar_thermalconductivity=model->thermalconductivity;
     403        matpar_heatcapacity=model->heatcapacity;
     404        matpar_latentheat=model->latentheat;
     405        matpar_beta=model->beta;
     406        matpar_meltingpoint=model->meltingpoint;
     407        matpar_mixed_layer_capacity=model->mixed_layer_capacity;
     408        matpar_thermal_exchange_velocity=model->thermal_exchange_velocity;
     409
     410        /*Create matpar object using its constructor: */
     411        matpar=new Matpar(matpar_mid,matpar_rho_ice,matpar_rho_water,matpar_heatcapacity,matpar_thermalconductivity,
     412                        matpar_latentheat,matpar_beta,matpar_meltingpoint,matpar_mixed_layer_capacity,
     413                        matpar_thermal_exchange_velocity,matpar_g);
     414               
     415        /*Add to materials datset: */
     416        materials->AddObject(matpar);
     417
    398418        /*Partition penalties in 3d: */
    399419        if(strcmp(model->meshtype,"3d")==0){
Note: See TracChangeset for help on using the changeset viewer.