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

Function N_VAddConst

externalpackages/PVODE/source/nvector.cpp:399–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397
398
399void N_VAddConst(N_Vector x, real b, N_Vector z)
400{
401 integer N;
402 real *xd, *zd;
403
404 N = x->length;
405 xd = x->data;
406 zd = z->data;
407
408#ifndef _OPENMP
409 for (integer i=0; i < N; i++) *zd++ = (*xd++) + b;
410#else
411 #pragma omp parallel for
412 for (integer i=0; i < N; i++)
413 zd[i] = xd[i] + b;
414#endif
415}
416
417
418real N_VDotProd(N_Vector x, N_Vector y)

Callers 4

CVDiagSetupFunction · 0.85
CVDiagSolveFunction · 0.85
CVEwtSetSSFunction · 0.85
CVUpperBoundH0Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected