#include #include #include #include #include "../src/dm/impls/swarm/data_bucket.h" PetscErrorCode private_DMSwarmCreateCellLocalCoords_DA_Q1_Regular(PetscInt dim,PetscInt np[],PetscInt *_npoints,PetscReal **_xi) { PetscErrorCode ierr; PetscReal *xi; PetscInt d,npoints=0,cnt; PetscReal ds[] = {0.0,0.0,0.0}; PetscInt ii,jj,kk; PetscFunctionBegin; switch (dim) { case 1: npoints = np[0]; break; case 2: npoints = np[0]*np[1]; break; case 3: npoints = np[0]*np[1]*np[2]; break; } for (d=0; d