Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ztdepztdep opened this issue Oct 27, 2019 · 2 comments
Open

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

ztdepztdep opened this issue Oct 27, 2019 · 2 comments

Comments

@ztdepztdep
Copy link

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
Copy link
Contributor

smelchio commented Nov 7, 2019

Did you solve #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
Copy link
Author

ztdepztdep commented Nov 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants