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/DiagnosticHutter/CreateNodesDiagnosticHutter.cpp

    r9340 r9356  
    1818        int i;
    1919        bool continuous_galerkin=true;
     20        int    numberofvertices;
     21        bool   ishutter;
    2022
    2123        /*DataSets: */
    2224        Nodes*    nodes = NULL;
     25
     26        /*Fetch parameters: */
     27        iomodel->parameters->FindParam(&numberofvertices,NumberOfVerticesEnum);
     28        iomodel->parameters->FindParam(&ishutter,IshutterEnum);
    2329
    2430        /*Recover pointer: */
     
    2935
    3036        /*Now, is the flag ishutter on? otherwise, do nothing: */
    31         if (!iomodel->ishutter)goto cleanup_and_return;
     37        if (!ishutter)goto cleanup_and_return;
    3238
    3339        /*Continuous Galerkin partition of nodes: */
     
    4652        CreateNumberNodeToElementConnectivity(iomodel);
    4753
    48         for (i=0;i<iomodel->numberofvertices;i++){
     54        for (i=0;i<numberofvertices;i++){
    4955
    5056                if(iomodel->my_vertices[i]){
Note: See TracChangeset for help on using the changeset viewer.