Ignore:
Timestamp:
08/19/11 18:04:03 (14 years ago)
Author:
Eric.Larour
Message:

Major rewrite of the code so that IoModel now has a parameters dataset, which gets
loaded with all the int,char and double objects in the input file.
This is a lot more flexible, as anyone can add a field to the model, and it will
automatically appear in the IoModel parameters dataset.

Not debugged with respect to nightly runs yet. Trying to get the whole change finished.

File:
1 edited

Legend:

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

    r9340 r9356  
    1010void    CreateConstraintsPrognostic(Constraints** pconstraints, IoModel* iomodel){
    1111
     12        int prognostic_DG;
     13       
     14        /*Fetch parameters: */
     15        iomodel->parameters->FindParam(&prognostic_DG,PrognosticDGEnum);
     16
    1217        /*Output*/
    1318        Constraints *constraints = NULL;
     
    2025
    2126        /*Do not add constraints in DG, they are weakly imposed*/
    22         if(!iomodel->prognostic_DG){
     27        if(!prognostic_DG){
    2328                IoModelToConstraintsx(constraints,iomodel,SpcthicknessEnum,PrognosticAnalysisEnum);
    2429        }
Note: See TracChangeset for help on using the changeset viewer.