Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
schwarz Module Reference

Overlapping schwarz solves.

Data Types

type  schwarz_t

Functions/Subroutines

subroutine schwarz_init (this, xh, dof, gs_h, bc_projector, msh)
subroutine schwarz_free (this)
subroutine schwarz_setup_wt (this)
 setup weights
subroutine schwarz_setup_schwarz_wt2d_2 (wt, ie, n, work, nelv)
 Setup schwarz weights, 2d, second step.
subroutine schwarz_setup_schwarz_wt3d_2 (wt, ie, n, work, nelv)
 Setup schwarz weights, 3d, second step.
subroutine schwarz_toreg3d (b, a, n, nelv)
 convert array a from extended size to regular
subroutine schwarz_toext3d (a, b, n, nelv)
 convert array a from original size to size extended array with border
subroutine schwarz_extrude (arr1, l1, f1, arr2, l2, f2, nx, ny, nz, nelv)
 Sum values along rows l1, l2 with weights f1, f2 and store along row l1. Helps us avoid complicated communcation to get neighbor values. Simply copy interesting values to the boundary and then do gs_op on extended array.
subroutine schwarz_extrude_single (arr, l1, f1, l2, f2, nx, ny, nz, nelv)
 Same as schwarz_extrude but for the case when arr1 and arr2 are the same array. Avoids aliasing by using a single dummy argument. l1 and l2 must index non-overlapping rows (e.g. 0 vs 2).
subroutine schwarz_compute (this, e, r, deps)
 Apply the overlapping Schwarz preconditioner, e = M^{-1} r.
subroutine schwarz_wt3d (e, wt, n, nelv)

Function/Subroutine Documentation

◆ schwarz_compute()

subroutine schwarz::schwarz_compute ( class(schwarz_t), intent(inout) this,
real(kind=rp), dimension(this%dof%size()), intent(inout) e,
real(kind=rp), dimension(this%dof%size()), intent(inout) r,
type(c_ptr), intent(in), optional deps )
private
Parameters
ePreconditioned output.
rInput residual.
depsOptional device event the Schwarz work on the aux queue waits on before reading r. When absent, an event is recorded on the global queue at entry, which orders the Schwarz behind everything queued on the global queue so far. A caller that runs the Schwarz concurrently with other work on the global queue should record the event itself, before that work is queued, and pass it here; otherwise the Schwarz is ordered behind the concurrent work as well.

Definition at line 516 of file schwarz.f90.

Here is the call graph for this function:

◆ schwarz_extrude()

subroutine schwarz::schwarz_extrude ( real(kind=rp), dimension(nx, ny, nz, nelv), intent(inout) arr1,
integer, intent(in) l1,
real(kind=rp), intent(in) f1,
real(kind=rp), dimension(nx, ny, nz, nelv), intent(in) arr2,
integer, intent(in) l2,
real(kind=rp), intent(in) f2,
integer, intent(in) nx,
integer, intent(in) ny,
integer, intent(in) nz,
integer, intent(in) nelv )
private
Note
arr1 and arr2 must not be the same array. Use schwarz_extrude_single when operating on a single array to avoid aliasing violations.

Definition at line 388 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_extrude_single()

subroutine schwarz::schwarz_extrude_single ( real(kind=rp), dimension(nx, ny, nz, nelv), intent(inout) arr,
integer, intent(in) l1,
real(kind=rp), intent(in) f1,
integer, intent(in) l2,
real(kind=rp), intent(in) f2,
integer, intent(in) nx,
integer, intent(in) ny,
integer, intent(in) nz,
integer, intent(in) nelv )
private

Definition at line 449 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_free()

subroutine schwarz::schwarz_free ( class(schwarz_t), intent(inout) this)
private

Definition at line 173 of file schwarz.f90.

Here is the call graph for this function:

◆ schwarz_init()

subroutine schwarz::schwarz_init ( class(schwarz_t), intent(inout), target this,
type(space_t), intent(inout), target xh,
type(dofmap_t), intent(in), target dof,
type(gs_t), intent(inout), target gs_h,
type(scalar_bc_projector_t), intent(inout), target bc_projector,
type(mesh_t), intent(inout), target msh )

Definition at line 112 of file schwarz.f90.

Here is the call graph for this function:

◆ schwarz_setup_schwarz_wt2d_2()

subroutine schwarz::schwarz_setup_schwarz_wt2d_2 ( real(kind=rp), dimension(n, 4, 2, nelv), intent(inout) wt,
integer ie,
integer, intent(in) n,
real(kind=rp), dimension(n, n), intent(inout) work,
integer, intent(in) nelv )
private

Definition at line 286 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_setup_schwarz_wt3d_2()

subroutine schwarz::schwarz_setup_schwarz_wt3d_2 ( real(kind=rp), dimension(n, n, 4, 3, nelv), intent(inout) wt,
integer, intent(in) ie,
integer, intent(in) n,
real(kind=rp), dimension(n, n, n), intent(inout) work,
integer, intent(in) nelv )
private

Definition at line 308 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_setup_wt()

subroutine schwarz::schwarz_setup_wt ( class(schwarz_t), intent(inout) this)
private

Definition at line 217 of file schwarz.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ schwarz_toext3d()

subroutine schwarz::schwarz_toext3d ( real(kind=rp), dimension(0:n+1, 0:n+1, 0:n+1, nelv), intent(inout) a,
real(kind=rp), dimension(n, n, n, nelv), intent(inout) b,
integer, intent(in) n,
integer, intent(in) nelv )
private

Definition at line 363 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_toreg3d()

subroutine schwarz::schwarz_toreg3d ( real(kind=rp), dimension(n, n, n, nelv), intent(inout) b,
real(kind=rp), dimension(0:n+1, 0:n+1, 0:n+1, nelv), intent(inout) a,
integer, intent(in) n,
integer, intent(in) nelv )
private

Definition at line 344 of file schwarz.f90.

Here is the caller graph for this function:

◆ schwarz_wt3d()

subroutine schwarz::schwarz_wt3d ( real(kind=rp), dimension(n, n, n, nelv), intent(inout) e,
real(kind=rp), dimension(n, n, 4, 3, nelv), intent(inout) wt,
integer, intent(in) n,
integer, intent(in) nelv )
private

Definition at line 612 of file schwarz.f90.

Here is the caller graph for this function: