GBS
petsc_dmda_mod Module Reference

Data Types

type  petsc_mat_dmda
 

Functions/Subroutines

subroutine, public init_petsc
 
subroutine, public init_petsc_struct (struct, comm, proc_x, proc_y, which)
 
subroutine, public create_dmda_petsc (struct, nx, ny, which)
 
subroutine setup_petsc_matrix (struct)
 
subroutine, public set_rhs (struct, rhs, iylg, iyrg, ixlg, ixrg)
 
subroutine, public set_inner_matrix (struct, i, j, laplace_stencil)
 
subroutine, public set_bc (struct, irow, icol, jrow, jcol, val)
 
subroutine, public assembly_matrix (struct)
 
subroutine, public solve (struct, rhs, iylg, iyrg, ixlg, ixrg)
 
subroutine clean_petsc (struct)
 

Function/Subroutine Documentation

◆ assembly_matrix()

subroutine, public petsc_dmda_mod::assembly_matrix ( type(petsc_mat_dmda struct)

◆ clean_petsc()

subroutine petsc_dmda_mod::clean_petsc ( type(petsc_mat_dmda struct)
private

◆ create_dmda_petsc()

subroutine, public petsc_dmda_mod::create_dmda_petsc ( type(petsc_mat_dmda struct,
integer, intent(in)  nx,
integer, intent(in)  ny,
character(len=*), intent(in)  which 
)

◆ init_petsc()

subroutine, public petsc_dmda_mod::init_petsc

◆ init_petsc_struct()

subroutine, public petsc_dmda_mod::init_petsc_struct ( type(petsc_mat_dmda struct,
integer, intent(in)  comm,
integer, intent(in)  proc_x,
integer, intent(in)  proc_y,
character(len=*), intent(in)  which 
)

◆ set_bc()

subroutine, public petsc_dmda_mod::set_bc ( type(petsc_mat_dmda struct,
integer, intent(in)  irow,
integer, intent(in)  icol,
integer, intent(in)  jrow,
integer, intent(in)  jcol,
double precision, intent(in)  val 
)

◆ set_inner_matrix()

subroutine, public petsc_dmda_mod::set_inner_matrix ( type(petsc_mat_dmda struct,
integer, intent(in)  i,
integer, intent(in)  j,
double precision, dimension(-2:2,-2:2), intent(in)  laplace_stencil 
)

◆ set_rhs()

subroutine, public petsc_dmda_mod::set_rhs ( type(petsc_mat_dmda struct,
double precision, dimension(iylg:iyrg,ixlg:ixrg), intent(in)  rhs,
integer, intent(in)  iylg,
integer, intent(in)  iyrg,
integer, intent(in)  ixlg,
integer, intent(in)  ixrg 
)

◆ setup_petsc_matrix()

subroutine petsc_dmda_mod::setup_petsc_matrix ( type(petsc_mat_dmda struct)
private

◆ solve()

subroutine, public petsc_dmda_mod::solve ( type(petsc_mat_dmda struct,
double precision, dimension(iylg:iyrg,ixlg:ixrg), intent(out)  rhs,
integer, intent(in)  iylg,
integer, intent(in)  iyrg,
integer, intent(in)  ixlg,
integer, intent(in)  ixrg 
)