📄 outwritetest.html
字号:
<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<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -