rio.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "rio.h"
#include "nfi.h"
#include "sll.h"

Include dependency graph for rio.c:

Go to the source code of this file.

Data Structures

struct  _tmptag

Typedefs

typedef _tmptag sTmpFileTags

Functions

static void _IoInitScreen (void)
static int _IoCopyInputFile (void)
static void _IoRemoveTempFiles (void)
int IoOpenFiles (int argc, char *argv[])
void IoCloseFiles (void)
int IoReadFile (void)
int IoWriteFile (void)
int IoStartSave (void)
void IoEndSave (void)
int IoFindResultTag (int id, long *ndlrpos, long *elmrpos)
void IoCloseTempFile (void)
void IoReset (void)

Variables

FILE * nf = 0L
FILE * pos = 0L
FILE * cfg = 0L
FILE * ndlr = 0L
FILE * elmr = 0L
static char arqnf [BUFSIZ]
static char arqpos [BUFSIZ]
static char arqdat [BUFSIZ]
static char arqcfg [BUFSIZ]
static char arqndlr [BUFSIZ]
static char arqelmr [BUFSIZ]
static int _iNumFileTags = 0
static sTmpFileTags * TmpFileTag = 0L


Typedef Documentation

typedef struct _tmptag sTmpFileTags


Function Documentation

static int _IoCopyInputFile ( void   )  [static]

Definition at line 137 of file rio.c.

References nf, and pos.

Referenced by IoOpenFiles().

Here is the caller graph for this function:

static void _IoInitScreen ( void   )  [static]

Definition at line 114 of file rio.c.

Referenced by IoOpenFiles().

Here is the caller graph for this function:

static void _IoRemoveTempFiles ( void   )  [static]

Definition at line 170 of file rio.c.

References arqelmr, arqndlr, RSllRmvTop(), and TmpFileTag.

Referenced by IoWriteFile().

Here is the call graph for this function:

Here is the caller graph for this function:

void IoCloseFiles ( void   ) 

Definition at line 269 of file rio.c.

References nf, and pos.

Referenced by RelaxRun(), and StandardVEAnalysis().

Here is the caller graph for this function:

void IoCloseTempFile ( void   ) 

Definition at line 466 of file rio.c.

References IoEndSave().

Referenced by StandardVEAnalysis().

Here is the call graph for this function:

Here is the caller graph for this function:

void IoEndSave ( void   ) 

Definition at line 418 of file rio.c.

References elmr, and ndlr.

Referenced by IoCloseTempFile().

Here is the caller graph for this function:

int IoFindResultTag ( int  id,
long *  ndlrpos,
long *  elmrpos 
)

Definition at line 434 of file rio.c.

References elmr, _tmptag::elmrpos, _tmptag::id, ndlr, _tmptag::ndlrpos, _tmptag::next, and TmpFileTag.

int IoOpenFiles ( int  argc,
char *  argv[] 
)

Definition at line 203 of file rio.c.

References _IoCopyInputFile(), _IoInitScreen(), arqdat, arqelmr, arqndlr, arqnf, arqpos, nf, and pos.

Referenced by RelaxRun().

Here is the call graph for this function:

Here is the caller graph for this function:

int IoReadFile ( void   ) 

Definition at line 284 of file rio.c.

References arqcfg, cfg, nf, NfiCheckParameters(), NfiInterpFile(), NfiReadConfigFile(), and NfiSetFileHandle().

Referenced by RelaxRun().

Here is the call graph for this function:

Here is the caller graph for this function:

void IoReset ( void   ) 

Definition at line 478 of file rio.c.

References _iNumFileTags, cfg, elmr, ndlr, nf, pos, and TmpFileTag.

Referenced by RelaxReset().

Here is the caller graph for this function:

int IoStartSave ( void   ) 

Definition at line 372 of file rio.c.

References _iNumFileTags, arqelmr, arqndlr, elmr, _tmptag::elmrpos, _tmptag::id, ndlr, _tmptag::ndlrpos, _tmptag::next, RSllAddEnd(), and TmpFileTag.

Referenced by HybridAnalysis(), HybridPrintResult(), ImpBFGSAnalysis(), ImpBFGSPrintResult(), ImpLinearAnalysis(), ImpLinearPrintResult(), ImpNRMAnalysis(), ImpNRMPrintResult(), LoadCaseAnalysis(), LoadStepAnalysis(), RezoneAnalysis(), StandardAnalysis(), StandardPrintResult(), StandardVEAnalysis(), StandardVEFlacAnalysis(), and StandardVEFlacPrintResult().

Here is the call graph for this function:

Here is the caller graph for this function:

int IoWriteFile ( void   ) 

Definition at line 349 of file rio.c.

References _IoRemoveTempFiles(), NfiSetFileHandle(), NfiWriteResults(), and pos.

Referenced by RelaxRun().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int _iNumFileTags = 0 [static]

Definition at line 93 of file rio.c.

Referenced by IoReset(), and IoStartSave().

char arqcfg[BUFSIZ] [static]

Definition at line 85 of file rio.c.

Referenced by IoReadFile().

char arqdat[BUFSIZ] [static]

Definition at line 84 of file rio.c.

Referenced by IoOpenFiles().

char arqelmr[BUFSIZ] [static]

Definition at line 87 of file rio.c.

Referenced by _IoRemoveTempFiles(), IoOpenFiles(), and IoStartSave().

char arqndlr[BUFSIZ] [static]

Definition at line 86 of file rio.c.

Referenced by _IoRemoveTempFiles(), IoOpenFiles(), and IoStartSave().

char arqnf[BUFSIZ] [static]

Definition at line 82 of file rio.c.

Referenced by IoOpenFiles().

char arqpos[BUFSIZ] [static]

Definition at line 83 of file rio.c.

Referenced by IoOpenFiles().

FILE* cfg = 0L

Definition at line 57 of file rio.c.

Referenced by IoReadFile(), and IoReset().

FILE* elmr = 0L

Definition at line 59 of file rio.c.

Referenced by _NfiWriteResultStep(), HybridAnalysis(), HybridPrintResult(), ImpBFGSAnalysis(), ImpBFGSPrintResult(), ImpLinearAnalysis(), ImpLinearPrintResult(), ImpNRMAnalysis(), ImpNRMPrintResult(), IoEndSave(), IoFindResultTag(), IoReset(), IoStartSave(), LoadCaseAnalysis(), LoadStepAnalysis(), RezoneAnalysis(), StandardAnalysis(), StandardPrintResult(), StandardVEAnalysis(), StandardVEFlacAnalysis(), and StandardVEFlacPrintResult().

FILE* ndlr = 0L

Definition at line 58 of file rio.c.

Referenced by _NfiWriteResultStep(), HybridAnalysis(), HybridPrintResult(), ImpBFGSAnalysis(), ImpBFGSPrintResult(), ImpLinearAnalysis(), ImpLinearPrintResult(), ImpNRMAnalysis(), ImpNRMPrintResult(), IoEndSave(), IoFindResultTag(), IoReset(), IoStartSave(), LoadCaseAnalysis(), LoadStepAnalysis(), RezoneAnalysis(), StandardAnalysis(), StandardPrintResult(), StandardVEAnalysis(), StandardVEFlacAnalysis(), and StandardVEFlacPrintResult().

FILE* nf = 0L

Definition at line 55 of file rio.c.

Referenced by _IoCopyInputFile(), AutoGlobalRead(), AutoLocalRead(), BRICK8Read(), BRICK8ReadInitStress(), BRICK8ReadProfile(), ConstCurveRead(), ConstShotRead(), ConstSurfaceRead(), DKTRead(), DKTReadInitStress(), GCSolver(), HiperbolicRead(), INFINITERead(), INFINITEReadInitStress(), INTERFACERead(), InterfaceRead(), INTERFACEReadInitStress(), IoCloseFiles(), IoOpenFiles(), IoReadFile(), IoReset(), IsotropicFailRead(), IsotropicRead(), ItfMohrCoulombRead(), KelvinRead(), LINE2Read(), LINE2ReadInitStress(), MaxwellRead(), MisesRead(), MohrCoulombCutOffRead(), MohrCoulombNACRead(), MohrCoulombNAVRead(), MohrCoulombRead(), OrthotropicRead(), Q4Read(), Q4ReadInitStress(), Q4ReadProfile(), RayleighRead(), T3Read(), T3ReadInitStress(), T3ReadProfile(), TETR4Read(), TETR4ReadInitStress(), and TETRA4ReadProfile().

FILE* pos = 0L

Definition at line 56 of file rio.c.

Referenced by _IoCopyInputFile(), IoCloseFiles(), IoOpenFiles(), IoReset(), IoWriteFile(), and pfsBuildSolOrderVec().

sTmpFileTags* TmpFileTag = 0L [static]

Definition at line 99 of file rio.c.

Referenced by _IoRemoveTempFiles(), IoFindResultTag(), IoReset(), and IoStartSave().


Generated on Fri Oct 5 15:56:13 2007 for ReconMS by  doxygen 1.5.1