20#include "panukl_auto.h" 
   22PANUKL_AUTO::PANUKL_AUTO( 
void ){ 
Clean (); }
 
   24PANUKL_AUTO::~PANUKL_AUTO( 
void ){}
 
   44    File = 
fopen( AutoFile, 
"r" );
 
   47        fprintf( stderr, 
"[.auto] file open error to reading (%s)\n", AutoFile );
 
 
   75    File = 
fopen( AutoFile, 
"w" );
 
   78        fprintf( stderr, 
"[.auto] file open error to writing (%s)\n", AutoFile );
 
   82    fprintf( File, 
"%d\n", 
Ms2Flag );
 
   83    fprintf( File, 
"%d\n", 
NghFlag );
 
   84    fprintf( File, 
"%d\n", 
ParFlag );
 
   85    fprintf( File, 
"%d\n", 
PrsFlag );
 
   86    fprintf( File, 
"%s\n", 
Ms2File );
 
   87    fprintf( File, 
"%s\n", 
NghFile );
 
   88    fprintf( File, 
"%s\n", 
ParFile );
 
   89    fprintf( File, 
"%s\n", 
PrsFile );
 
 
static FILE * fopen(const char *filename, const char *mode)
Cross-platform function to fopen function that supports UTF-8 encoded name.
 
static void ClipFileName(char *string)
Clipping of the ending blanc characters of "string".
 
static int ReadStr(FILE *stream, char *Par)
Function to read the new line from FILE "stream" and to store it in table of char "Par"....
 
static int ReadPar(FILE *stream, const char *Format, void *Par)
Function to read one variable. The type of variable depends on Format, compatible with stdio library.
 
int Write(const char *AutoFile)
writes AUTO file
 
bool PrsFlag
Press program flag (1-run Press with PrsFile, 0-don't run Press)
 
bool Ms2Flag
Mesh program flag (1-run Mesh3 with Ms2File, 0-don't run Mesh)
 
char NghFile[256]
NGH filename.
 
bool NghFlag
Neigh program flag (1-run Neigh with NghFile, 0-don't run Neigh)
 
int Read(const char *AutoFile)
reads AUTO file
 
char PrsFile[256]
PRS filename.
 
void Clean()
cleans local variables
 
char AUTO_file[256]
AUTO filename.
 
char ParFile[256]
PAR filename.
 
bool ParFlag
Panukl program flag (1-run Panukl with ParFile, 0-don't run Panukl)
 
char Ms2File[256]
MS2 filename.