Changeset 4673


Ignore:
Timestamp:
07/20/10 10:29:35 (15 years ago)
Author:
seroussi
Message:

wrong indices onf rheology_n in materials

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Materials/Matice.cpp

    r4550 r4673  
    5050                /*Get n*/
    5151                if (iomodel->rheology_n) {
    52                         for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[int(iomodel->elements[num_vertices*index+i]-1)];
     52                        for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[index];
    5353                        this->inputs->AddInput(new TriaVertexInput(RheologyNEnum,nodeinputs));
    5454                }
     
    7070                /*Get n*/
    7171                if (iomodel->rheology_n) {
    72                         for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[int(iomodel->elements[num_vertices*index+i]-1)];
     72                        for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[index];
    7373                        this->inputs->AddInput(new PentaVertexInput(RheologyNEnum,nodeinputs));
    7474                }
Note: See TracChangeset for help on using the changeset viewer.