#include "petscmat.h" #include "petsc_matvec_utils.h" #include "tmm_forcing_utils.h" #undef __FUNCT__ #define __FUNCT__ "forwardStep" PetscErrorCode forwardStep(PetscScalar tc, PetscInt iLoop, PetscScalar dt, PetscInt numTracers, PetscBool useForcingFromFile, PetscBool useExternalForcing, PetscBool usePrescribedBC, Vec *v, Mat Ae, Mat Ai, Mat Be, Mat Bi, Vec *uf, Vec *uef, Vec *bcc, Vec *bcf, Vec *vtmp) { PetscInt itr; PetscErrorCode ierr; PetscScalar one = 1.0; /* PetscInt bcCutOffStep = 720; */ /* iLoop -> iLoop+1 (convention) */ for (itr=0; itr