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/Enthalpy/UpdateElementsEnthalpy.cpp

    r9343 r9356  
    1616void    UpdateElementsEnthalpy(Elements* elements, IoModel* iomodel,int analysis_counter,int analysis_type){
    1717
     18        int    dim;
     19        int    numberofelements;
     20
     21        /*Fetch parameters: */
     22        iomodel->parameters->FindParam(&dim,DimEnum);
     23        iomodel->parameters->FindParam(&numberofelements,NumberOfElementsEnum);
     24
    1825        /*Now, is the model 3d? otherwise, do nothing: */
    19         if (iomodel->dim==2)return;
     26        if (dim==2)return;
    2027
    2128        /*Fetch data needed: */
     
    2431        /*Update elements: */
    2532        int counter=0;
    26         for(int i=0;i<iomodel->numberofelements;i++){
     33        for(int i=0;i<numberofelements;i++){
    2734                if(iomodel->my_elements[i]){
    2835                        Element* element=(Element*)elements->GetObjectByOffset(counter);
Note: See TracChangeset for help on using the changeset viewer.