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

Function VScaleSum

externalpackages/PVODE/source/nvector.cpp:751–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749
750
751static void VScaleSum(real c, N_Vector x, N_Vector y, N_Vector z)
752{
753 integer N;
754 real *xd, *yd, *zd;
755
756 N = x->length;
757 xd = x->data;
758 yd = y->data;
759 zd = z->data;
760
761 #pragma omp parallel for
762 for (integer i=0; i < N; i++)
763 zd[i] = c * (xd[i] + yd[i]);
764}
765
766
767static void VScaleDiff(real c, N_Vector x, N_Vector y, N_Vector z)

Callers 1

N_VLinearSumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected