Changeset 21548


Ignore:
Timestamp:
02/10/17 11:32:39 (8 years ago)
Author:
Mathieu Morlighem
Message:

NEW: enable dynamic spcs for enthalpy model (required for PDD scheme)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r21547 r21548  
    4040                }
    4141        }
    42         IoModelToConstraintsx(constraints,iomodel,spcvector,M,N,EnthalpyAnalysisEnum,finiteelement,0);
     42
     43        /*Specific case for PDD, we want the constaints to be updated by the PDD scheme itself*/
     44        bool isdynamic = false;
     45        if (iomodel->solution_enum==TransientSolutionEnum){
     46                int smb_model;
     47                iomodel->FindConstant(&smb_model,"md.smb.model");
     48                if(smb_model==SMBpddEnum)     isdynamic=true;
     49                if(smb_model==SMBd18opddEnum) isdynamic=true;
     50        }
     51
     52        if(isdynamic){
     53                IoModelToDynamicConstraintsx(constraints,iomodel,"md.thermal.spctemperature",ThermalAnalysisEnum,finiteelement);
     54        }
     55        else{
     56                IoModelToConstraintsx(constraints,iomodel,spcvector,M,N,EnthalpyAnalysisEnum,finiteelement);
     57        }
    4358
    4459        /*Free ressources:*/
Note: See TracChangeset for help on using the changeset viewer.