MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / N_VCompare

Function N_VCompare

externalpackages/PVODE/source/nvector.cpp:574–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572
573
574void N_VCompare(real c, N_Vector x, N_Vector z)
575{
576 integer i, N;
577 real *xd, *zd;
578
579 N = x->length;
580 xd = x->data;
581 zd = z->data;
582
583 #pragma omp parallel for
584 for (i=0; i < N; i++) {
585 zd[i] = (ABS(xd[i]) >= c) ? ONE : ZERO;
586 }
587}
588
589
590boole N_VInvTest(N_Vector x, N_Vector z)

Callers 1

CVDiagSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected