Commit e48d7dc8 authored by Stefan Kerkemeier's avatar Stefan Kerkemeier
Browse files

initialize gs->mode properly

parent aa9467e4
......@@ -143,8 +143,9 @@ oogs_t* oogs::setup(ogs_t *ogs, int nVec, dlong stride, const char *type, std::f
int rank;
MPI_Comm_rank(gs->comm, &rank);
gs->rank = rank;
gs->mode = gsMode;
if(gsMode == OOGS_DEFAULT) return gs;
if(gsMode == OOGS_DEFAULT) return gs;
for (int r=0;r<2;r++) {
if ((r==0 && gs->rank==0) || (r==1 && gs->rank>0)) {
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