29char eos_bf_file_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Eos/eos_bf_file.C,v 1.11 2015/06/11 14:41:59 a_sourie Exp $" ;
86#include "eos_bifluid.h"
87#include "utilitaires.h"
111 fread_be(&identificator,
sizeof(
int), 1, fich) ;
113 switch(identificator) {
126 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
127 cout <<
" identificator = " << identificator << endl ;
147 if (
read_variable (fname,
const_cast<char*
>(
"ident"), identificator) != 0)
149 cerr <<
"ERROR: Could not read the required variable 'ident' in " << fname << endl;
155 switch(identificator) {
168 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
169 cout <<
" identificator = " << identificator << endl ;
190 fich >> identificator ; fich.getline(blabla, 80) ;
194 switch(identificator) {
202 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
203 cout <<
" identificator = " << identificator << endl ;
Analytic equation of state for two fluids (Newtonian case).
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.
Analytic equation of state for two fluids (relativistic case).
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.
Class for a two-fluid (tabulated) equation of state.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
2-fluids equation of state base class.
static Eos_bifluid * eos_from_file(FILE *)
Construction of an EOS from a binary file.
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
int read_variable(const char *fname, const char *var_name, char *fmt, void *varp)
Reads a variable from file.