36#include "Citations.hpp"
37#include "FilesystemPermissions.hpp"
51#if ((PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 5) || PETSC_VERSION_MAJOR > 3)
60#if ((PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 5) || PETSC_VERSION_MAJOR > 3)
61 PetscCitationsRegister(pCitation, pSet);
78 std::ostream* p_output = &(std::cout);
79 bool writing_to_file =
false;
84 writing_to_file =
true;
86 p_output =
new std::ofstream(out_file_path.c_str(), std::ios::out);
92 (*p_output) <<
"If you publish results based on this computation please cite the following:" << std::endl;
93 (*p_output) <<
"===========================================================================" << std::endl;
95 for (
unsigned i = 0; i <
mCitations.size(); ++i)
100 (*p_output) <<
"===========================================================================" << std::endl;
#define EXCEPT_IF_NOT(test)
static bool mUseChasteImplementation
static void Register(const char *pCitation, PetscBool *pSet)
static std::vector< const char * > mCitations
static CommandLineArguments * Instance()
std::string GetStringCorrespondingToOption(const std::string &rOption, int valueNumber=1)
int GetNumberOfArgumentsForOption(const std::string &rOption, bool throwIfNone=false)
static void SetFilePermissions(const fs::path &rPath)