The SpaceDim C++ integer constant specifies the dimension of the Chombo library to be built. It is initialized to the value of the macro CH_SPACEDIM. Hence it will have one of the values 1, 2, or 3.
C++ code that depends on the dimensionality of the problem that you're trying to solve should be cast in terms of this constant, instead of the CH_SPACEDIM macro, if possible, as constants are visible to debuggers while macros are not.
Referenced by BASISV(), TransformIF::boxLayoutChanged(), GeometryShop::canGenerateMultiCells(), NewGeometryShop::canGenerateMultiCells(), IntVect::coarsen(), ProblemDomain::contains(), MiniIFFAB< Real >::define(), BaseIFFAB< FaceStencil >::define(), BaseEBFaceFAB< Real >::define(), ProblemDomain::define(), RealTensor::det(), ViscousTensorOp::diagonalScale(), EBViscousTensorOp::diagonalScale(), ViscousTensorOp::divideByIdentityCoef(), EBViscousTensorOp::divideByIdentityCoef(), ViscousBaseEBBC::getBoundaryGrad(), ViscousBaseEBBC::getChangeInSolution(), EBPatchGodunov::getEntireBox(), ViscousTensorOp::getFlux(), EBAMRPoissonOp::getFlux(), AMRPoissonOp::getFlux(), ViscousBaseEBBC::getFluxFromGrad(), DirichletViscousTensorEBBC::getFluxStencil(), TensorCFInterp::gradIndex(), GraphNodeImplem::index(), Correct1D2D::index(), AggEBPWLFillPatch::isDefined(), EBPatchAdvect::numSlopes(), RealTensor::operator()(), EBAMRPoissonOp::StencilIndexComparator::operator()(), EBFluxFAB::operator*=(), EBFluxFAB::operator+=(), EBFluxFAB::operator-=(), EBFluxFAB::operator/=(), IntVect::operator=(), RealTensor::operator=(), ProblemDomain::operator=(), ProblemDomain::operator==(), RealVect::operator[](), ProblemDomain::ProblemDomain(), RealTensor::RealTensor(), RealVect::RealVect(), IntVect::reflect(), reflect(), IntVect::setVal(), IntVect::shift(), AMRMultiGrid< LevelData< T > >::solveNoInitResid(), BaseFab< Real >::testBoxAndComp(), BaseLevelCrankNicolson< LevelData< EBCellFAB >, EBFluxFAB, EBFluxRegister >::updateSoln(), BaseLevelBackwardEuler< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSolnWithTimeDependentOp(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSolnWithTimeIndependentOp(), ReferenceHeightIF::value(), and RealVect::vectorLength().