outwritetest.html

来自「有限元学习研究用源代码(老外的),供科研人员参考」· HTML 代码 · 共 33 行

HTML
33
字号
<TITLE>IBG 2.0 - Writing the Grid</TITLE>

<H1>Writing The Grid Into a File</H1>

 <P>The grid will be written into a file by the following code:

<PRE>
char testFileName[500];
 
void		test_output(cogeometry geom, wzgrid grid)
{
    grid->write(testFileName);
}
</PRE>

 <P>It writes the grid in the format Simplex 2.0 into the file defined below:

<PRE>
#define output_initialize_defined
void output_initialize(int argc, char *argv[])
{
  int i=1;
  sprintf(testFileName,"%s","ibg.sg");
  while (i&lt;argc){
    if      (strcmp(argv[i],"-o")==0)     {sprintf(testFileName,"%s",argv[i+1]); i+=2;}
    else    i++;
  }
}
</PRE>

 <P>If you want to write out only some of the regions, you have to
<A HREF="segmattest.html"> modify the material</A> of these regions.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?