source: issm/oecreview/Archive/16554-17801/ISSM-17041-17042.diff@ 17802

Last change on this file since 17802 was 17802, checked in by Mathieu Morlighem, 11 years ago

Added archives

File size: 1.2 KB
RevLine 
[17802]1Index: ../trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp
2===================================================================
3--- ../trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp (revision 17041)
4+++ ../trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp (revision 17042)
5@@ -180,9 +180,9 @@
6 v1 = iomodel->edges[3*i+0]-1;
7 v2 = iomodel->edges[3*i+1]-1;
8 if(!xIsNan<IssmDouble>(spcdata[v1]) && !xIsNan<IssmDouble>(spcdata[v2])){
9- constraints->AddObject(new SpcStatic(iomodel->constraintcounter+2*count+1,iomodel->nodecounter+iomodel->numberofvertices+2*i+1,
10+ constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+iomodel->numberofvertices+2*i+1,
11 dof,2./3.*spcdata[v1]+1./3.*spcdata[v2],analysis_type));
12- constraints->AddObject(new SpcStatic(iomodel->constraintcounter+2*count+2,iomodel->nodecounter+iomodel->numberofvertices+2*i+2,
13+ constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+2,iomodel->nodecounter+iomodel->numberofvertices+2*i+2,
14 dof,1./3.*spcdata[v1]+2./3.*spcdata[v2],analysis_type));
15 count=count+2;
16 }
Note: See TracBrowser for help on using the repository browser.