Skip to content
Discussion options

You must be logged in to vote

See the ktauChannel example to extract values on desired points.

void extractLine(nrs_t *nrs, double time)
{
const auto np = (platform->comm.mpiRank() == 0) ? 200 : 0;
const auto offset = np;
static pointInterpolation_t *interpolator = nullptr;
static std::vector<dfloat> xp, yp, zp;
static deviceMemory<dfloat> o_Up;
if (!interpolator) {
auto mesh = nrs->meshV;
const auto yMin = platform->linAlg->min(mesh->Nlocal, mesh->o_y, platform->comm.mpiComm());
const auto yMax = platform->linAlg->max(mesh->Nlocal, mesh->o_y, platform->comm.mpiComm());
if …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@foreverkon
Comment options

Answer selected by foreverkon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants