1 #ifndef MODEL_INTERFACE_GB_READ_H
2 #define MODEL_INTERFACE_GB_READ_H
49 std::vector<Set::Scalar> theta, thetasmall, w, dw, ddw;
50 while(std::getline(input,line))
53 theta.push_back(std::stof(dat[0]));
54 w.push_back(std::stof(dat[1]));
56 for (
unsigned int i = 1; i < theta.size()-1; i++)
58 thetasmall.push_back(theta[i]);
59 dw.push_back((w[i+1] - w[i-1]) / (theta[i+1] - theta[i-1]));
60 ddw.push_back((w[i+1] - 2.0*w[i] + w[i-1]) / ((theta[i+1]-theta[i]) * (theta[i]-theta[i-1])));
69 if (std::isnan(w) || std::isnan(dw) || std::isnan(ddw) ||
70 std::isinf(w) || std::isinf(dw) || std::isinf(ddw))