Skip to content
Snippets Groups Projects
Commit b99f89f0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix post-incrementation of News++

parent b7df6f33
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,8 @@ Return ...@@ -130,7 +130,8 @@ Return
//////// ////////
Function DefLoop_ Function DefLoop_
current_numSurface=News++; Line Loop(current_numSurface) = current_loop[]; News++;
current_numSurface=News; Line Loop(current_numSurface) = current_loop[];
Return Return
//////// ////////
...@@ -254,7 +255,7 @@ If (flagTransfinite) ...@@ -254,7 +255,7 @@ If (flagTransfinite)
Transfinite Line {l_[2]} = nxDivs+1 Using Progression 1./valProgressionX; Transfinite Line {l_[2]} = nxDivs+1 Using Progression 1./valProgressionX;
EndIf EndIf
If (flag_DefSurface) If (flag_DefSurface)
Transfinite Surface {current_numSurface} = {p_[0],p_[1],p_[2],p_[3]}; Transfinite Surface {current_numSurface} = {p_[0],p_[1],p_[2],p_[3]};
If (flagRecombine) Recombine Surface {current_numSurface}; EndIf If (flagRecombine) Recombine Surface {current_numSurface}; EndIf
EndIf EndIf
EndIf EndIf
...@@ -321,7 +322,7 @@ vector_size_ = #vector[]; ...@@ -321,7 +322,7 @@ vector_size_ = #vector[];
Printf("Vector: size: %g", vector_size_); Printf("Vector: size: %g", vector_size_);
For i In {0:vector_size_-1} For i In {0:vector_size_-1}
Printf(" %g", vector[i]); Printf(" %g", vector[i]);
EndFor EndFor
Return Return
/* use e.g.: /* use e.g.:
vector[]=yourlist[]; Call PrintVector; vector[]=yourlist[]; Call PrintVector;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment