Skip to content

Commit

Permalink
Fix compilation under GCC 7.5 for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesdpdn-aerospace committed Sep 20, 2024
1 parent 5540929 commit 31a1359
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions OndselSolver/ASMTAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,11 @@ void MbD::ASMTAssembly::runSinglePendulum()

std::shared_ptr<ASMTAssembly> MbD::ASMTAssembly::assemblyFromFile(const std::string& fileName)
{
// https://stackoverflow.com/a/45867491
#if __GNUC__ >= 8
std::filesystem::path currentPath = std::filesystem::current_path();
std::cout << "Current directory: " << currentPath << std::endl;
#endif

std::ifstream stream(fileName);
if (stream.fail()) {
Expand Down
1 change: 0 additions & 1 deletion OndselSolverMain/OndselSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* @brief Program to assemble a piston crank system.
*********************************************************************/

#include <filesystem>
#include "../OndselSolver/CADSystem.h"
#include "../OndselSolver/CREATE.h"
#include "../OndselSolver/GESpMatParPvPrecise.h"
Expand Down

0 comments on commit 31a1359

Please sign in to comment.