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

Function N_VAbs

externalpackages/PVODE/source/nvector.cpp:359–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358
359void N_VAbs(N_Vector x, N_Vector z)
360{
361 integer N;
362 real *xd, *zd;
363
364 N = x->length;
365 xd = x->data;
366 zd = z->data;
367
368#ifndef _OPENMP
369 for (integer i=0; i < N; i++, xd++, zd++)
370 *zd = ABS(*xd);
371#else
372 #pragma omp parallel for
373 for (integer i=0; i < N; i++)
374 zd[i] = ABS(xd[i]);
375#endif
376}
377
378
379void N_VInv(N_Vector x, N_Vector z)

Callers 4

CVEwtSetSSFunction · 0.85
CVEwtSetSVFunction · 0.85
CVUpperBoundH0Function · 0.85
CVHandleFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected