📄 outtest.html
字号:
<TITLE>IBG 2.0 - Default Output</TITLE>
<H1>Default Output</H1>
<P>This file defines the test code default output.
<P>You can replace this default test code by other output code with
the following command:
<P>> use out <B>opt</B>
<P>Here, <B>opt</B> denotes one of the following options:
<UL>
<LI> without option, this default will be recovered. Moreover, you
see the actual list of options. Mail me if the list below is invalid;
<LI> <A HREF="outnonetest.html">none</A> makes no output.
<LI> <A HREF="outwritetest.html">write</A> writes the grid into a file.
<LI> <A HREF="outgeomtest.html">geom</A> starts the geometry viewer for the geometry.
<LI> <A HREF="outviewtest.html">view</A> starts the geometry viewer
for the original geometry as well as for the geometry defined by the grid.
<LI> <A HREF="outfulltest.html">full</A> is the same as view + write
</UL>
<P>You can also test your own test code. To add an option xxx you
simply have to write the file "outxxxtest.html" following the
conventions of the other files "out*test.html". That's easy if you
start with one of these files as a pattern.
<P>The default code below has been taken from
<A HREF="outwritetest.htm">outwritetest.html</A>.
<PRE>
char testFileName[500];
void test_output(cogeometry geom, wzgrid grid)
{
grid->write(testFileName);
}
#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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -