@@ -37,7 +37,7 @@ namespace RTD
3737 // open ascii file for writing the cell type information
3838 std::ofstream elementinformationfile (elementinformationfilename.c_str ());
3939 if (!elementinformationfile)
40- FOUR_C_THROW (" failed to open file: {}" , elementinformationfilename. c_str () );
40+ FOUR_C_THROW (" failed to open file: {}" , elementinformationfilename);
4141 elementinformationfile << " # yaml file created using 4C version (git SHA1):\n " ;
4242 elementinformationfile << " # " << VersionControl::git_hash << " \n #\n " ;
4343
@@ -52,7 +52,7 @@ namespace RTD
5252 // open ascii file for writing all header parameters
5353 std::ofstream headerdocumentationfile (headerdocumentationfilename.c_str ());
5454 if (!headerdocumentationfile)
55- FOUR_C_THROW (" failed to open file: {}" , headerdocumentationfilename. c_str () );
55+ FOUR_C_THROW (" failed to open file: {}" , headerdocumentationfilename);
5656 headerdocumentationfile << " ..\n Created using 4C version (git SHA1):\n " ;
5757 headerdocumentationfile << " " << VersionControl::git_hash << " \n\n " ;
5858 headerdocumentationfile << " .. _headerparameters:\n\n " ;
@@ -87,7 +87,7 @@ namespace RTD
8787 // open ascii file for writing all header parameters
8888 std::ofstream celltypeocumentationfile (celltypedocumentationfilename.c_str ());
8989 if (!celltypeocumentationfile)
90- FOUR_C_THROW (" failed to open file: {}" , celltypedocumentationfilename. c_str () );
90+ FOUR_C_THROW (" failed to open file: {}" , celltypedocumentationfilename);
9191 celltypeocumentationfile << " ..\n Created using 4C version (git SHA1):\n " ;
9292 celltypeocumentationfile << " " << VersionControl::git_hash << " \n\n " ;
9393
@@ -102,7 +102,7 @@ namespace RTD
102102 // open ascii file for writing all material parameters
103103 std::ofstream materialdocumentationfile (materialdocumentationfilename.c_str ());
104104 if (!materialdocumentationfile)
105- FOUR_C_THROW (" failed to open file: {}" , materialdocumentationfilename. c_str () );
105+ FOUR_C_THROW (" failed to open file: {}" , materialdocumentationfilename);
106106 materialdocumentationfile << " ..\n Created using 4C version (git SHA1):\n " ;
107107 materialdocumentationfile << " " << VersionControl::git_hash << " \n\n " ;
108108 write_material_reference (materialdocumentationfile, Global::valid_materials ());
@@ -116,7 +116,7 @@ namespace RTD
116116 // open ascii file for writing all constrains / conditions parameters
117117 std::ofstream conditiondocumentationfile (conditiondocumentationfilename.c_str ());
118118 if (!conditiondocumentationfile)
119- FOUR_C_THROW (" failed to open file: {}" , conditiondocumentationfilename. c_str () );
119+ FOUR_C_THROW (" failed to open file: {}" , conditiondocumentationfilename);
120120 conditiondocumentationfile << " ..\n Created using 4C version (git SHA1):\n " ;
121121 conditiondocumentationfile << " " << VersionControl::git_hash << " \n\n " ;
122122 write_conditions_reference (conditiondocumentationfile, Input::valid_conditions ());
@@ -133,7 +133,7 @@ namespace RTD
133133 // open ascii file for writing other (non header) parameters
134134 std::ofstream variousdocumentationfile (variousdocumentationfilename.c_str ());
135135 if (!variousdocumentationfile)
136- FOUR_C_THROW (" failed to open file: {}" , variousdocumentationfilename. c_str () );
136+ FOUR_C_THROW (" failed to open file: {}" , variousdocumentationfilename);
137137 variousdocumentationfile << " ..\n Created using 4C version (git SHA1):\n " ;
138138 variousdocumentationfile << " " << VersionControl::git_hash << " \n\n " ;
139139 write_various_reference (variousdocumentationfile);
0 commit comments