Loading fs_strength.cpp +347 −344 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ #include <vector> #include <cmath> using namespace std; //using namespace std; struct OutData { double I; Loading Loading @@ -165,8 +165,11 @@ struct IVstorage { } void import_iv_from_ivcat_to_storage(std::string filename) { uint64_t ptr = 0; std::ifstream f; f.open(filename); std::ifstream f(filename); if (!f){ std::cerr<<"file not found"; } //f.open(filename); std::string line; while(std::getline(f, line)) { if(line.front() == '#') { Loading Loading @@ -340,5 +343,5 @@ int main(int argc, char **argv) ToughnessCounter ac(ivs, Nx); ac.accumulate_strength(); ac.export_strength("strength"); ac.export_strength("strength_check"); } Loading
fs_strength.cpp +347 −344 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ #include <vector> #include <cmath> using namespace std; //using namespace std; struct OutData { double I; Loading Loading @@ -165,8 +165,11 @@ struct IVstorage { } void import_iv_from_ivcat_to_storage(std::string filename) { uint64_t ptr = 0; std::ifstream f; f.open(filename); std::ifstream f(filename); if (!f){ std::cerr<<"file not found"; } //f.open(filename); std::string line; while(std::getline(f, line)) { if(line.front() == '#') { Loading Loading @@ -340,5 +343,5 @@ int main(int argc, char **argv) ToughnessCounter ac(ivs, Nx); ac.accumulate_strength(); ac.export_strength("strength"); ac.export_strength("strength_check"); }