90 if ((PETSC_VERSION_MAJOR < 3) || (PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR < 5))
100 std::string cwd = GetCurrentWorkingDirectory() +
"/";
104 std::cout << std::endl
105 <<
"Changing directory from '" << cwd <<
"' to '" <<
ChasteSourceRootDir() <<
"'." << std::endl;
107 std::cout <<
"CWD now: " << GetCurrentWorkingDirectory() << std::endl;
112 feenableexcept(FE_DIVBYZERO | FE_INVALID);
115 sa.sa_sigaction = FpeSignalToAbort;
116 sa.sa_flags = SA_RESETHAND | SA_SIGINFO;
118 sigaction(SIGFPE, &sa, NULL);