From 2bbe5a0c5df42d73446ca81bfd52d6d9ef9d73ec Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 4 Dec 2000 11:28:40 +0000 Subject: [PATCH] *** empty log message *** --- Parser/Gmsh.y | 8 ++++---- Unix/CbOptions.cpp | 3 ++- demos/FORMATS | 35 +++++++++++++++++++++++++++++------ 3 files changed, 35 insertions(+), 11 deletions(-) diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y index 327ef3126a..5a1c3a10c0 100644 --- a/Parser/Gmsh.y +++ b/Parser/Gmsh.y @@ -1,4 +1,4 @@ -%{ /* $Id: Gmsh.y,v 1.11 2000-12-04 09:51:51 geuzaine Exp $ */ +%{ /* $Id: Gmsh.y,v 1.12 2000-12-04 11:28:33 geuzaine Exp $ */ #include <stdarg.h> @@ -1305,9 +1305,9 @@ Coherence : } ; -/* ------------- - C O L O R S - ------------- */ +/* --------------- + O P T I O N S + --------------- */ Options : tColor '{' ColorSections '}' diff --git a/Unix/CbOptions.cpp b/Unix/CbOptions.cpp index 2cf2c6a0dc..aa5ba7c69f 100644 --- a/Unix/CbOptions.cpp +++ b/Unix/CbOptions.cpp @@ -1,4 +1,4 @@ -/* $Id: CbOptions.cpp,v 1.7 2000-11-26 15:43:48 geuzaine Exp $ */ +/* $Id: CbOptions.cpp,v 1.8 2000-12-04 11:28:37 geuzaine Exp $ */ #include "Gmsh.h" #include "GmshUI.h" @@ -107,6 +107,7 @@ void OptionsCb (Widget w, XtPointer client_data, XtPointer call_data){ CTX.r[0],CTX.r[1],CTX.r[2], CTX.t[0],CTX.t[1],CTX.t[2], CTX.s[0],CTX.s[1],CTX.s[2]); + PrintContext(&CTX, stderr); break ; /* print */ diff --git a/demos/FORMATS b/demos/FORMATS index 5e83634310..1cfabc79ef 100644 --- a/demos/FORMATS +++ b/demos/FORMATS @@ -38,7 +38,7 @@ Gmsh Mesh File Format Gmsh Ascii Post-Processing File Format ====================================== - Any post-processing file is divided in several sections: one + A post-processing file is divided in several sections: one format section (enclosed between $PostFormat/$EndPostFormat) and (possibly multiple) post-processing views (enclosed between $View/$EndView pairs). @@ -83,11 +83,28 @@ Gmsh Ascii Post-Processing File Format scalar points, vector points, tensor points, scalar lines, vector lines, tensor lines, scalar triangles, vector triangles, tensor triangles, scalar tetrahedra, vector tetrahedra and tensor tetrahedra. + - 'SP-values' is a list of double precision numbers: + the three first represent the corrdinates of the point + the 'nb-time-step' following Gmsh Binary Post-Processing File Format ======================================= - int one=1; + The binary post-processing file format is the same as the ascii file format, + except that: + - the format field is the following + $PostFormat + version-number 1 + $EndPostFormat + - all double precision vectors ('time-step-values', 'SP-values', 'VP-values', etc.) + are written in binary format + - AND there is an additional integer written before the 'time-step-values', and + which contains the value '1'. This integer serves as a test for little/big endian + detection. + + Here is an example, of C code to write the binary format: + + int one=1; fprintf(file, "$View /* %s */\n", name); fprintf(file, "%s %g\n", name, version); @@ -96,17 +113,23 @@ Gmsh Binary Post-Processing File Format fwrite(&One, sizeof(int), 1, PostStream); -Parsed View Format -================== + +Gmsh Parsed Post-Processing Format +================================== + + For testing purposes (or with very small data sets), there is an additional, + post-processing format which is parsed by the same grammar analyser as the + geometry. You can thus for example embed small post-processing views into your + geometrical descriptions. View "name" { - type of element (list of coordinates) {list of values} ; + type_of_element (list_of_coordinates) {list_of_values} ; ... } 12 base objects can be displayed: - type of element list of coordinates list of values + type_of_element list_of_coordinates list_of_values -------------------------------------------------------------------------------- scalar point SP 3 1 * nb time steps vector point VP 3 3 * nb time steps -- GitLab