ddx 0.6.0
Libary for domain-decomposition methods for polarizable continuum models
ddx_workspace Module Reference

Workspace for temporary buffers. More...

Data Types

type  ddx_workspace_type
 Container for temporary arrays. More...
 

Functions/Subroutines

subroutine workspace_init (params, constants, workspace, ddx_error)
 Initialize and allocate the temporary workspaces. More...
 
subroutine workspace_free (workspace, ddx_error)
 Deallocate the temporary workspaces. More...
 

Detailed Description

Workspace for temporary buffers.

Function/Subroutine Documentation

◆ workspace_init()

subroutine ddx_workspace::workspace_init ( type(ddx_params_type), intent(in)  params,
type(ddx_constants_type), intent(in)  constants,
type(ddx_workspace_type), intent(out)  workspace,
type(ddx_error_type), intent(inout)  ddx_error 
)

Initialize and allocate the temporary workspaces.

Parameters
[in]paramsUser specified parameters
[in]constantsPrecomputed constants
[out]workspacePreallocated workspaces
[in,out]ddx_errorddX error

Definition at line 113 of file ddx_workspace.f90.

◆ workspace_free()

subroutine ddx_workspace::workspace_free ( type(ddx_workspace_type), intent(out)  workspace,
type(ddx_error_type), intent(inout)  ddx_error 
)

Deallocate the temporary workspaces.

Parameters
[out]workspacePreallocated workspaces
[in,out]ddx_errorddX error

Definition at line 285 of file ddx_workspace.f90.