Changeset 4121


Ignore:
Timestamp:
06/22/10 14:28:41 (15 years ago)
Author:
Mathieu Morlighem
Message:

bug fix (counter should be updated AFTER UpdateElements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateNodesDiagnosticHoriz.cpp

    r4117 r4121  
    1717        /*Intermediary*/
    1818        int i;
    19         int totalnodes;
    2019        bool continuous_galerkin=true;
    2120
     
    2827        /*Now, is the flag macayaealpattyn on? otherwise, do nothing: */
    2928        if (!iomodel->ismacayealpattyn)goto cleanup_and_return;
    30 
    31         /*Recover number of nodes already created in other analyses: */
    32         totalnodes=iomodel->nodecounter;
    3329
    3430        /*Continuous Galerkin partition of nodes: */
     
    5147                       
    5248                        /*Add node to nodes dataset: */
    53                         nodes->AddObject(new Node(totalnodes+i+1,i+1,i,iomodel,DiagnosticHorizAnalysisEnum));
     49                        nodes->AddObject(new Node(iomodel->nodecounter+i+1,i+1,i,iomodel,DiagnosticHorizAnalysisEnum));
    5450                }
    5551        }
    56 
    57         /*Increase nodecounter for other analyses to start their node indexing correctly: */
    58         totalnodes+=iomodel->numberofvertices;
    59         iomodel->nodecounter=totalnodes;
    6052
    6153        /*Clean fetched data: */
Note: See TracChangeset for help on using the changeset viewer.