Skip to content

Commit 69b86a2

Browse files
committed
put a flag to remove savemesh in examples/plugin/test-Element_P2pnc_3d.edp du to write probem in /tmp under under Windows
1 parent 647e83b commit 69b86a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/plugin/test-Element_P2pnc_3d.edp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load "Element_P2pnc_3d"
22
load "tetgen"
33
load "medit"
4+
int smesh=0;
45
int err=0;
56
int cas1=0; //0 need Th1.mesh ...
67
macro DoFi(d,u,vf,p) ((d==12) ? int3d(Th)((u)/volume) : int2d(Th,d/3,qforder=6)((u)*l[vf(d/3,p[d]%3)]/area)) //
@@ -111,7 +112,7 @@ load "Element_P2pnc"
111112

112113
real[int] xx=[0,1,0,0], yy=[0,0,1,0], zz=[0,0,0,1];
113114
mesh3 Th=tetgconvexhull(xx,yy,zz,region=1,label=3);
114-
savemesh(Th,"/tmp/Th.mesh");
115+
if(smesh) savemesh(Th,"Th.mesh");
115116

116117
assert(Th.nbe==4);
117118
int [int] plab=[0,2,3,1];
@@ -126,7 +127,7 @@ for(int f=0; f<Th.nbe;++f)
126127

127128
}
128129
Th=change(Th,flabel=plab[nuFace]);
129-
savemesh(Th,"/tmp/Th2.mesh");
130+
if(smesh) savemesh(Th,"Th2.mesh");
130131
buildp(Th,0,p,vf);
131132
verifp(Th,0,p,vf);
132133

0 commit comments

Comments
 (0)