Skip to content

Commit 7978016

Browse files
Fix failing compilations
1 parent a391fc0 commit 7978016

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

applications/CSharpWrapperApplication/tests/cpp_tests/test_calculate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ namespace Kratos {
8686
})");
8787
const std::string &r_json_text = json_parameters.PrettyPrintJsonString();
8888
std::filebuf buffer;
89-
file_path = std::filesystem::current_path() / "file.json";
90-
buffer.open(file_path.string().c_str(), std::ios::out);
89+
std::filesystem::path file_path_json = std::filesystem::current_path() / "file.json";
90+
buffer.open(file_path_json.string().c_str(), std::ios::out);
9191
std::ostream os(&buffer);
9292
os << r_json_text;
9393
buffer.close();

applications/ContactStructuralMechanicsApplication/tests/cpp_tests/linear_solvers/test_mixedulm_linear_solver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ void CreateAuxiliaryFiles()
6969
const std::string rhs = "%%MatrixMarket matrix array real general\n16 1\n0\n0\n0\n-5.1725e+07\n0\n-1.0345e+08\n0\n-5.1725e+07\n0\n-1.0345e+08\n0\n-6.23386e+08\n0\n-6.23386e+08\n0\n0\n";
7070

7171
std::filebuf buffer_rhs;
72-
file_path = std::filesystem::current_path() / "b_testing_condensation.rhs";
73-
buffer_rhs.open(file_path.string().c_str(),std::ios::out);
72+
std::filesystem::path file_path_json = std::filesystem::current_path() / "b_testing_condensation.rhs";
73+
buffer_rhs.open(file_path_json.string().c_str(),std::ios::out);
7474
std::ostream os_rhs(&buffer_rhs);
7575
os_rhs << rhs;
7676
buffer_rhs.close();

0 commit comments

Comments
 (0)