![]() ![]() ![]() ![]() Next: Ell_LinMetric Up: Solving an elliptic equation Previous: Solving an elliptic equation Contents Ell_LinFlatTo call this interface from Fortran:call Ell_LinFlatSolver(ierr, cctkGH, phi_gfi, M_gfi, N_gfi, . AbsTol, RelTol, "solvername")To call this interface from C: ierr = Ell_LinFlatSolver(GH, phi_gfi, M_gfi, N_gfi, AbsTol, RelTol, "solvername");Argument List:
c We derive the grid function indicies from the names of the c grid functions: call CCTK_VarIndex (Mcoeff_gfi, "idscalarwaveelliptic::Mcoeff") call CCTK_VarIndex (Ncoeff_gfi, "idscalarwaveelliptic::Ncoeff") call CCTK_VarIndex (phi_gfi, "wavetoy::phi") c Load the Absolute Tolerance Arrays AbsTol(1)=1.0d-5 AbsTol(2)=1.0d-5 AbsTol(3)=1.0d-5 c Load the Relative Tolerance Arrays, they are not c used here: -1 RelTol(1)=-1 RelTol(2)=-1 RelTol(3)=-1 c Call to elliptic solver, named ``sor'' call Ell_LinFlatSolver(ierr, cctkGH, . phi_gfi, Mcoeff_gfi, Ncoeff_gfi, AbsTol, RelTol, . "sor") c Do some error checking, a call to another solver c could be coded here if (ierr.ne.0) then call CCTK_WARN(0,"Requested solver not found / solve failed"); endif
![]() ![]() ![]() ![]() Next: Ell_LinMetric Up: Solving an elliptic equation Previous: Solving an elliptic equation Contents |