Go to the source code of this file.
◆ ExpWrite()
int ExpWrite |
( |
Contours * |
contours, |
|
|
char * |
domainname |
|
) |
| |
Definition at line 32 of file Contours.cpp.
39 if((fid=fopen(domainname,
"w"))==NULL)
_error_(
"could not open domain file " << domainname);
41 for(
int counter=0;counter<contours->
Size();counter++){
45 fprintf(fid,
"## Name:%s\n",domainname);
46 fprintf(fid,
"## Icon:0\n");
47 fprintf(fid,
"# Points Count Value\n");
48 fprintf(fid,
"%u %s\n",contour->
nods ,
"1.");
49 fprintf(fid,
"# X pos Y pos\n");
52 for(
int i=0;i<contour->
nods;i++){
53 fprintf(fid,
"%lf\t%lf\n",contour->
x[i],contour->
y[i]);
57 if(counter<contours->Size()-1) fprintf(fid,
"\n");