sandialabs / omega_h

Simplex mesh adaptivity for HPC
Other
114 stars 53 forks source link

Which API return the global index of the ghost cell? #328

Open ztdepztdep opened 5 years ago

ztdepztdep commented 5 years ago

Friends: I have partitioned the mesh sucessfully . On each CPU, i need to know the global index of the ghost cells for the FVM . Which API provide these functionalities. Regards

smelchio commented 5 years ago

Did you solve https://github.com/SNLComputation/omega_h/issues/327 ? Inspired from https://github.com/SNLComputation/omega_h/blob/master/src/Omega_h_mesh.cpp#L627-L634

Read<GO> Mesh::ghost_global_index() {
  const auto globals_e = globals(dim());
  const auto g = 1 - owned(this->dim());
  const auto g2e = collect_marked(g);
  return unmap(g2e, globals_e, 1);
}

By the way, do you know the function sync_array?

ztdepztdep commented 5 years ago

Did you solve #327 ? Inspired from https://github.com/SNLComputation/omega_h/blob/master/src/Omega_h_mesh.cpp#L627-L634

  const auto globals_e = globals(dim());
  const auto g = 1 - owned(this->dim());
  const auto g2e = collect_marked(g);
  return unmap(g2e, globals_e, 1);
}

By the way, do you know the function sync_array?

problem #327 is still blocking me. I think "sync_array" is used to communicate between each cpu to syncronize the data.