00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 char eos_fit_sly4_C[] = "$Header: /cvsroot/Lorene/C++/Source/Eos/eos_fit_sly4.C,v 1.1 2004/09/26 18:54:35 k_taniguchi Exp $" ;
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "headcpp.h"
00043 #include "eos.h"
00044 #include "eos_fitting.h"
00045
00046
00047
00048
00049
00050
00051
00052 Eos_fit_SLy4::Eos_fit_SLy4(const char* path)
00053 : Eos_fitting("EOS fitted to SLy4", "eos_fit_sly4.d", path)
00054 {}
00055
00056
00057
00058 Eos_fit_SLy4::Eos_fit_SLy4(FILE* fich) : Eos_fitting(fich) {}
00059
00060
00061
00062 Eos_fit_SLy4::Eos_fit_SLy4(ifstream& fich)
00063 : Eos_fitting(fich, "eos_fit_sly4.d")
00064 {}
00065
00066
00067
00068
00069
00070 Eos_fit_SLy4::~Eos_fit_SLy4() {
00071
00072
00073
00074 }
00075
00076
00077
00078
00079
00080 bool Eos_fit_SLy4::operator==(const Eos& eos_i) const {
00081
00082 bool resu = true ;
00083
00084 if ( eos_i.identify() != identify() ) {
00085 cout << "The second EOS is not of type Eos_fit_SLy4 !" << endl ;
00086 resu = false ;
00087 }
00088
00089 return resu ;
00090
00091 }
00092
00093 bool Eos_fit_SLy4::operator!=(const Eos& eos_i) const {
00094
00095 return !(operator==(eos_i)) ;
00096
00097 }
00098
00099
00100
00101
00102
00103 ostream& Eos_fit_SLy4::operator>>(ostream& ost) const {
00104
00105 ost <<
00106 "EOS of class Eos_fit_SLy4 : "
00107 << endl ;
00108
00109 ost << " composition : n, p, e, mu" << endl ;
00110 ost << " model : effective nucleon energy functional, SLy4" << endl ;
00111
00112 return ost ;
00113
00114 }