Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_numerics
Commits
45607501
Commit
45607501
authored
May 11, 2016
by
Pietro Incardona
Browse files
Adding missing file
parent
7d9c38fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/petsc_util.hpp
0 → 100644
View file @
45607501
/*
* PETSC_util.hpp
*
* Created on: Jul 7, 2015
* Author: Pietro Incardona
*/
#ifndef PETSC_UTIL_HPP_
#define PETSC_UTIL_HPP_
#include <iostream>
#define PETSC_SAFE_CALL(call) {\
PetscErrorCode err = call;\
if (err != 0) {\
std::string msg("Petsc error: ");\
msg += std::string(__FILE__) + std::string(" ") + std::to_string(__LINE__);\
PetscError(MPI_COMM_WORLD,__LINE__,__FUNCT__,__FILE__,err,PETSC_ERROR_INITIAL,"Error petsc");\
}\
}
#endif
/* MPI_UTIL_HPP_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment