
![]() | Next step: print out information
for (i = 0; i <= nx; i++) {
for (j = 0; j <= ny; j++) {
arglist = Py_BuildValue("(dd)", IND1(xcoor,i), IND1(ycoor,j));
result = PyEval_CallObject(func1, arglist);
IND2(a,i,j) = PyFloat_AS_DOUBLE(result);
#ifdef DEBUG
printf("a[%d,%d]=func1(%g,%g)=%g\n",i,j,
IND1(xcoor,i),IND1(ycoor,j),IND2(a,i,j));
#endif
}
}
|
![]() | Run
./make_module_1.sh gridloop3 -DDEBUG |