Molecular Dynamics Simulation  1.0
Functions
SimulationParams.cpp File Reference
#include "SimulationParams.h"
#include <omp.h>
#include <filesystem>
#include <fstream>
#include <numeric>
#include "io/input/chkpt/ChkptPointFileReader.h"
#include "io/logger/Logger.h"
#include "io/output/OutputFormats.h"
#include "physics/ForcePicker.h"
#include "physics/simpleforces/GlobalDownwardsGravity.h"
#include "utils/StringUtils.h"
Include dependency graph for SimulationParams.cpp:

Go to the source code of this file.

Functions

std::filesystem::path constructOutputPath (const std::filesystem::path &base_path, const std::string &name)
 

Function Documentation

◆ constructOutputPath()

std::filesystem::path constructOutputPath ( const std::filesystem::path &  base_path,
const std::string &  name 
)

Definition at line 17 of file SimulationParams.cpp.

17  {
18  auto base = base_path;
19 
20  if (base.empty()) {
21  base = "./output";
22  }
23 
24  return std::filesystem::absolute(base) / name;
25 }