Ignore:
Timestamp:
09/11/20 07:26:02 (5 years ago)
Author:
bdef
Message:

CHG: Some more iterator loop changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/CreateNodalConstraintsx/CreateNodalConstraintsx.cpp

    r23587 r25554  
    2929         ys=new Vector<IssmDouble>(slocalsize,ssize);
    3030
    31         /*go through all nodes, and for the ones corresponding to this configuration_type, fill the 
     31        /*go through all nodes, and for the ones corresponding to this configuration_type, fill the
    3232         * constraints vector with the constraint values: */
    33         for(int i=0;i<nodes->Size();i++){
    34                 Node* node=(Node*)nodes->GetObjectByOffset(i);
     33        for(Object* & object: nodes->objects){
     34                Node* node=xDynamicCast<Node*>(object);
    3535                node->CreateNodalConstraints(ys);
    3636        }
Note: See TracChangeset for help on using the changeset viewer.