tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
tblite_api_context Module Reference

API export for environment context setup. More...

Data Types

type  vp_context
 Void pointer to manage calculation context. More...
interface  callback
 Interface for callbacks used in custom logger. More...

Functions/Subroutines

type(c_ptr) function, public new_context_api ()
 Create new calculation context object.
integer(c_int) function, public check_context_api (vctx)
 Create new calculation context object.
subroutine, public get_context_error_api (vctx, charptr, buffersize)
 Get error message from calculation environment.
subroutine, public set_context_color_api (vctx, color)
subroutine, public set_context_verbosity_api (vctx, verbosity)
subroutine, public set_context_partition_api (vctx, part, nparts)
 Assign an externally managed share of the interaction loops to the context.
subroutine, public set_context_mpi_api (vctx, comm)
 Distribute the interaction loops over an MPI communicator, fails if tblite was built without MPI support.
subroutine, public delete_context_api (vctx)
 Delete context object.
subroutine, public set_context_logger_api (vctx, vproc, vdata)
 Create a new custom logger for the calculation context.

Variables

logical, parameter debug = .false.

Detailed Description

API export for environment context setup.

Function/Subroutine Documentation

◆ set_context_mpi_api()

subroutine, public tblite_api_context::set_context_mpi_api ( type(c_ptr), value vctx,
integer(c_int), intent(in), optional comm )

Distribute the interaction loops over an MPI communicator, fails if tblite was built without MPI support.

Parameters
[in]commFortran handle of the communicator, absent selects the global communicator