70 #if defined(CHECK_COUNT)
71 if (
ncount >= ncount_check)
75 constexpr
size_t sizeofdouble =
sizeof(double);
80 +(nvar+2)*sizeofdouble;
84 size_t slen=strlen(ids);
99 memcpy(
list,py->get_u_dot(),nvar*sizeofdouble);
104 cerr <<
"error in byte calculation in "
105 " write_pass1_prod" <<
endl;
136 cerr <<
"illegal value for df1b2variable::pass = "
164 #if defined(SAFE_ALL)
168 double xu=*(
double *) bptr;
169 bptr+=
sizeof(double);
174 memcpy(&yu,bptr,
sizeof(
double));
187 size_t total_bytes=2*nvar*
sizeof(double);
189 #if defined(SAFE_ALL)
191 size_t slen=strlen(ids);
196 void * tmpptr=list2.
bptr;
197 #if defined(SAFE_ALL)
201 constexpr
size_t sizeofdouble =
sizeof(double);
221 double* py_u_bar = py->
u_bar;
222 double* pz_u_bar = pz->
u_bar;
223 for (
size_t i = 0; i < nvar; ++i)
225 *py_u_bar += xu * *pz_u_bar;
232 for (
size_t i = 0; i < nvar; ++i)
234 *py_u_dot_bar += xu * *pz_u_dot_bar;
250 memset(pz->
u_bar, 0, nvar * sizeofdouble);
251 memset(pz->
u_dot_bar, 0, nvar * sizeofdouble);
269 +(nvar+2)*
sizeof(double);
271 #if defined(SAFE_ALL)
273 size_t slen=strlen(ids);
291 int num_bytes2=*nlist2.
bptr;
305 #if defined(SAFE_ALL)
309 double xu=*(
double *) list.
bptr;
310 list.
bptr+=
sizeof(
double);
318 list.
bptr+=
sizeof(double);
343 constexpr
size_t sizeofdouble =
sizeof(double);
344 memset(z_bar_tilde, 0, nvar * sizeofdouble);
345 memset(z_dot_bar_tilde, 0, nvar * sizeofdouble);
348 for (
size_t i=0;i<nvar;i++)
350 *z_bar_tilde += xu * *y_bar_tilde;
354 for (
size_t i=0;i<nvar;i++)
356 *z_dot_bar_tilde += xu * *y_dot_bar_tilde;
387 #if defined(SAFE_ALL)
390 double xu=*(
double*) list.
bptr;
391 list.
bptr+=
sizeof(
double);
397 list.
bptr+=
sizeof(double);
406 for (
size_t i=0;i<nvar;i++)
408 *py_u_dot_tilde += xu * *pz_u_dot_tilde;
419 constexpr
size_t sizeofdouble =
sizeof(double);
void check_buffer_size(const size_t)
Description not yet available.
df1b2_gradlist * f1b2gradlist
void memcpy(test_smartlist &dest, void *source, const size_t nsize)
memcpy for test_smartlist
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
int adptr_diff(void *x, void *y)
void restoreposition(void)
Description not yet available.
Description not yet available.
void read_pass2_2_prodc1(void)
Description not yet available.
dmatrix operator*(const d3_array &t, const dvector &v)
Description not yet available.
int write_pass1_prod(double x, const df1b2variable *py, df1b2variable *pz)
Description not yet available.
Description not yet available.
prnstream & endl(prnstream &)
static int no_derivatives
Description not yet available.
void ad_read_pass2_prodc1(void)
Description not yet available.
void read_pass2_3_prodc1(void)
Description not yet available.
Description not yet available.
void checkidentiferstring(const char *ids, test_smartlist &list)
Description not yet available.
d3_array operator/(const d3_array &m, const double d)
Author: David Fournier.
void read_pass2_1_prodc1(void)
Description not yet available.