Commit 15cfd496 authored by incardon's avatar incardon

Fixing PETSC for new version

parent 4e569e3b
......@@ -719,7 +719,7 @@ public:
typename vector::stype dx[vector::dims];
for (size_t i = 0 ; i < vector::dims ; i++)
dx[i] = 1.0/gd.spacing(i);
{dx[i] = 1.0/gd.spacing(i);}
// point position
typename vector::stype xp[vector::dims];
......@@ -731,7 +731,7 @@ public:
size_t sz[vector::dims];
for (size_t i = 0 ; i < vector::dims ; i++)
sz[i] = kernel::np;
{sz[i] = kernel::np;}
// Precalculate the offset for each sub-sub-domain
openfpm::vector<agg_arr<openfpm::math::pow(kernel::np,vector::dims)>> offsets;
......
......@@ -16,7 +16,7 @@
std::string msg("Petsc error: ");\
msg += std::string(__FILE__) + std::string(" ") + std::to_string(__LINE__);\
PetscInt ln = __LINE__;\
PetscError(MPI_COMM_WORLD,ln,__FUNCT__,__FILE__,err,PETSC_ERROR_INITIAL,"Error petsc");\
PetscError(MPI_COMM_WORLD,ln,__FUNCTION__,__FILE__,err,PETSC_ERROR_INITIAL,"Error petsc");\
}\
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment