21    int numberOfParticles;
 
   22    int referenceAndFinal= 
true;
 
   23    std::string prefix= 
"defANDundefSystem_";
 
   24    std::vector<std::string> modelnames={
 
   25            "MEAM_LAMMPS_DuLenoskyHennig_2011_Si__MO_883726743759_002",
 
   26            "EDIP_JustoBazantKaxiras_1998_Si__MO_958932894036_002",
 
   27            "Tersoff_LAMMPS_Tersoff_1988T3_Si__MO_186459956893_004",   
 
   28            "ThreeBodyCluster_Gong_Gong_1993_Si__MO_407755720412_000",
 
   29            "SW_BalamaneHauchShi_2017Brittle_Si__MO_381114941873_002"};
 
   56    Vector3d lowerLimit(20*5.5,20*5.5,2*5.5);
 
   57    Vector3d upperLimit(80*5.5,80*5.5,10*5.5);
 
   58    Grid<Current> gridFromFile(lowerLimit,upperLimit,ngrid,ngrid,1);
 
   71    for (
const auto modelname : modelnames)
 
   78        std::string configFileName= prefix+modelname+
".data";
 
   80        std::ifstream file(configFileName);
 
   81        if(!file) 
MY_ERROR(
"ERROR: config.dat could not be opened for reading!");
 
   85        while (std::getline(file, line)) {
 
   86            std::istringstream ss(line);
 
   87            if (ss >> numberOfParticles)
 
   90        if (numberOfParticles < 0) 
MY_ERROR(
"Error: Negative number of particles.\n");
 
   92        body.
read(configFileName,referenceAndFinal);
 
  107                            std::tie(hardyStress5, hardyStress10, hardyStress15, hardyStress20), 
true);
 
  108            hardyStress5.
write(
"project_hardy5_" + modelname);
 
  109            hardyStress10.
write(
"project_hardy10_" + modelname);
 
  110            hardyStress15.
write(
"project_hardy15_" + modelname);
 
  111            hardyStress20.
write(
"project_hardy20_" + modelname);
 
  113        catch(
const std::runtime_error& e){
 
  114            std::cout << e.what() << std::endl;
 
  115            std::cout << 
"Compute stress with projected forces failed. Moving on" << std::endl;
 
  128                            std::tie(hardyStress5, hardyStress10, hardyStress15, hardyStress20));
 
  129            hardyStress5.
write(
"hardy5_" + modelname);
 
  130            hardyStress10.
write(
"hardy10_" + modelname);
 
  131            hardyStress15.
write(
"hardy15_" + modelname);
 
  132            hardyStress20.
write(
"hardy20_" + modelname);
 
  134        catch(
const std::runtime_error& e){
 
  135            std::cout << e.what() << std::endl;
 
  136            std::cout << 
"Compute stress with process_dedr failed. Moving on" << std::endl;