stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit 0e8d62f6d1f93ca021cfdd59d83e21dceaa13d4f
parent f25754f51ed3de83f44377707b58106adef4002d
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 20 Nov 2020 09:16:25 +0100

Add file format version for binary green files

Diffstat:
Msrc/stardis-output.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/stardis-output.c b/src/stardis-output.c @@ -637,7 +637,8 @@ dump_green_bin unsigned name_pool_sz = 0; char* name_pool = NULL; char* pool_ptr; - char green_string[] = "BINGREEN"; + const char green_string[] = "GREEN_BIN_FILE:"; + const unsigned file_fmt_version = 1; ASSERT(green && stardis && stream); @@ -669,8 +670,9 @@ dump_green_bin pool_ptr += len + 1; } ASSERT(pool_ptr == name_pool + name_pool_sz); - /* Write Green string */ + /* Write Green string and file format version */ FW(green_string, sizeof(green_string)); + FW(&file_fmt_version, 1); /* Write counts */ FW(&szd, 1);