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

Function N_VDiv

externalpackages/PVODE/source/nvector.cpp:309–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308
309void N_VDiv(N_Vector x, N_Vector y, N_Vector z)
310{
311 integer N;
312 real *xd, *yd, *zd;
313
314 N = x->length;
315 xd = x->data;
316 yd = y->data;
317 zd = z->data;
318
319#ifndef _OPENMP
320 for (integer i=0; i < N; i++)
321 *zd++ = (*xd++) / (*yd++);
322#else
323 #pragma omp parallel for
324 for (integer i=0; i < N; i++)
325 zd[i] = xd[i] / yd[i];
326#endif
327}
328
329
330void N_VScale(real c, N_Vector x, N_Vector z)

Callers 3

SpgmrSolveFunction · 0.85
CVDiagSetupFunction · 0.85
CVUpperBoundH0Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected