36 #include "Citations.hpp" 50 #if ((PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 5) || PETSC_VERSION_MAJOR > 3) 59 #if ((PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 5) || PETSC_VERSION_MAJOR > 3) 60 PetscCitationsRegister(pCitation, pSet);
77 std::ostream* p_output = &(std::cout);
78 bool writing_to_file =
false;
83 writing_to_file =
true;
85 p_output =
new std::ofstream(out_file_path.c_str(), std::ios::out);
90 (*p_output) <<
"If you publish results based on this computation please cite the following:" << std::endl;
91 (*p_output) <<
"===========================================================================" << std::endl;
93 for (
unsigned i = 0; i <
mCitations.size(); ++i)
98 (*p_output) <<
"===========================================================================" << std::endl;
static bool mUseChasteImplementation
std::string GetStringCorrespondingToOption(const std::string &rOption, int valueNumber=1)
#define EXCEPT_IF_NOT(test)
static void Register(const char *pCitation, PetscBool *pSet)
static CommandLineArguments * Instance()
int GetNumberOfArgumentsForOption(const std::string &rOption, bool throwIfNone=false)
static std::vector< const char * > mCitations