Change VERSION to ENGINE_VERSION
Also changed it form 200 to 201 as some changes were made to the engine in 2.1. Closes #27
This commit is contained in:
@@ -2930,7 +2930,7 @@ int openhydfile()
|
||||
if (Hydflag != USE)
|
||||
{
|
||||
magic = MAGICNUMBER;
|
||||
version = VERSION;
|
||||
version = ENGINE_VERSION;
|
||||
nsize[0] = Nnodes;
|
||||
nsize[1] = Nlinks;
|
||||
nsize[2] = Ntanks;
|
||||
@@ -2950,7 +2950,7 @@ int openhydfile()
|
||||
fread(&magic,sizeof(INT4),1,HydFile);
|
||||
if (magic != MAGICNUMBER) return(306);
|
||||
fread(&version,sizeof(INT4),1,HydFile);
|
||||
if (version != VERSION) return(306);
|
||||
if (version != ENGINE_VERSION) return(306);
|
||||
if (fread(nsize,sizeof(INT4),6,HydFile) < 6) return(306);
|
||||
if (nsize[0] != Nnodes || nsize[1] != Nlinks ||
|
||||
nsize[2] != Ntanks || nsize[3] != Npumps ||
|
||||
|
||||
@@ -39,7 +39,7 @@ typedef int INT4; /
|
||||
/*** Updated ***/
|
||||
#define CODEVERSION 20100
|
||||
#define MAGICNUMBER 516114521
|
||||
#define VERSION 200
|
||||
#define ENGINE_VERSION 201
|
||||
#define EOFMARK 0x1A /* Use 0x04 for UNIX systems */
|
||||
#define MAXTITLE 3 /* Max. # title lines */
|
||||
#define MAXID 31 /* Max. # characters in ID name */ //(2.00.11 - LR)
|
||||
|
||||
Reference in New Issue
Block a user