//#include "cstd.h" #define ABSORB //#define LOCAL_VERBOSE #undef LOCAL_VERBOSE /* void asg_vstep2d(float ** restrict buoy, float ** restrict p0,float ** restrict p1, float ** restrict v0,float ** restrict v1, float ** restrict ev, float ** restrict evp, float ** restrict gradp, int * gsc_v0, int * gec_v0, int * gsc_v1, int * gec_v1, int * lbc, int * rbc, int maxoff,float ** restrict c, FILE * stream) { */ // signature for tapenade void asg_vstep2d(float **buoy, float **p0,float **p1, float **v0,float **v1, float **ev, float **evp, float **gradp, int * gsc_v0, int * gec_v0, int * gsc_v1, int * gec_v1, int * lbc, int * rbc, int maxoff,float **c) { int i0, i1; int ioff; #ifdef LOCAL_VERBOSE fprintf(stream,"asg_vstep2d v0\n"); fprintf(stream,"idim=0 gsc_v0=%d gec_v0=%d\n",gsc_v0[0],gec_v0[0]); fprintf(stream,"idim=1 gsc_v0=%d gec_v0=%d\n",gsc_v0[1],gec_v0[1]); fprintf(stream,"maxoff=%d\n",maxoff); fflush(stream); #endif for (i1=gsc_v0[1]; i1 <= gec_v0[1]; i1++ ) { for (i0=gsc_v0[0]; i0 <= gec_v0[0]; i0++ ) gradp[0][i0]=0; for (ioff=0; ioff