Commit aff06901 authored by Leon Pyka's avatar Leon Pyka
Browse files

fixed fs_strength.cpp

parent 2af3c6b2
Loading
Loading
Loading
Loading
+347 −344
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
#include <vector>
#include <cmath>

using namespace std;
//using namespace std;

struct OutData {
    double I;
@@ -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() == '#') {
@@ -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");
}