The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
Functions/Subroutines
oft_base_f Module Reference

Detailed Description

Fortran part of Python wrappers for OFT.

Authors
Chris Hansen
Date
May 2023

Functions/Subroutines

subroutine copy_string (f_string, c_string)
 Needs docs.
 
subroutine copy_string_rev (c_string, f_string)
 Needs docs.
 
subroutine oft_setup_smesh (ndim, np, r_loc, npc, nc, lc_loc, reg_loc, nregs, mesh_ptr)
 Needs docs.
 
subroutine oft_setup_vmesh (ndim, np, r_loc, npc, nc, lc_loc, reg_loc, nregs, mesh_ptr)
 Needs docs.
 
subroutine oftpy_init (nthreads, input_file, slens, abort_fun)
 Needs docs.
 
subroutine oftpy_load_xml (xml_file, oft_node_ptr)
 Needs docs.
 
subroutine oftpy_set_debug (debug_level)
 Set debug verbosity level.
 
subroutine oftpy_set_nthreads (nthreads)
 Set the number of OpenMP threads to use.
 

Function/Subroutine Documentation

◆ copy_string()

subroutine copy_string ( character(len=*), intent(in)  f_string,
character(kind=c_char), dimension(*), intent(out)  c_string 
)

Needs docs.

Parameters
[in]f_stringNeeds docs
[out]c_stringNeeds docs

◆ copy_string_rev()

subroutine copy_string_rev ( character(kind=c_char), dimension(*), intent(in)  c_string,
character(len=*), intent(inout)  f_string 
)

Needs docs.

Parameters
[in]c_stringNeeds docs
[in,out]f_stringNeeds docs

◆ oft_setup_smesh()

subroutine oft_setup_smesh ( integer(c_int), intent(in), value  ndim,
integer(c_int), intent(in), value  np,
type(c_ptr), intent(in), value  r_loc,
integer(c_int), intent(in), value  npc,
integer(c_int), intent(in), value  nc,
type(c_ptr), intent(in), value  lc_loc,
type(c_ptr), intent(in), value  reg_loc,
integer(c_int), intent(out)  nregs,
type(c_ptr), intent(out)  mesh_ptr 
)

Needs docs.

Parameters
[in]r_locNeeds docs
[in]lc_locNeeds docs
[in]reg_locNeeds docs
[in]npNeeds docs
[in]ndimNeeds docs
[in]npcNeeds docs
[in]ncNeeds docs
[out]nregsNeeds docs
[out]mesh_ptrNeeds docs

◆ oft_setup_vmesh()

subroutine oft_setup_vmesh ( integer(c_int), intent(in), value  ndim,
integer(c_int), intent(in), value  np,
type(c_ptr), intent(in), value  r_loc,
integer(c_int), intent(in), value  npc,
integer(c_int), intent(in), value  nc,
type(c_ptr), intent(in), value  lc_loc,
type(c_ptr), intent(in), value  reg_loc,
integer(c_int), intent(out)  nregs,
type(c_ptr), intent(out)  mesh_ptr 
)

Needs docs.

Parameters
[in]r_locNeeds docs
[in]lc_locNeeds docs
[in]reg_locNeeds docs
[in]npNeeds docs
[in]ndimNeeds docs
[in]npcNeeds docs
[in]ncNeeds docs
[out]nregsNeeds docs
[out]mesh_ptrNeeds docs

◆ oftpy_init()

subroutine oftpy_init ( integer(c_int), intent(in), value  nthreads,
character(kind=c_char), dimension(oft_path_slen), intent(in)  input_file,
type(c_ptr), intent(in), value  slens,
type(c_funptr), intent(in), value  abort_fun 
)

Needs docs.

Parameters
[in]nthreadsNeeds docs
[in]input_fileNeeds docs
[in]slensString lengths
[in]abort_funAbort callback for Python

◆ oftpy_load_xml()

subroutine oftpy_load_xml ( character(kind=c_char), dimension(oft_path_slen), intent(in)  xml_file,
type(c_ptr), intent(out)  oft_node_ptr 
)

Needs docs.

Parameters
[in]xml_fileNeeds docs
[out]oft_node_ptrNeeds docs

◆ oftpy_set_debug()

subroutine oftpy_set_debug ( integer(c_int), intent(in), value  debug_level)

Set debug verbosity level.

Parameters
[in]debug_levelNew value for debug level (must be in range [0,3])

◆ oftpy_set_nthreads()

subroutine oftpy_set_nthreads ( integer(c_int), intent(in), value  nthreads)

Set the number of OpenMP threads to use.

Parameters
[in]nthreadsNumber of threads to use for subsequent OpenMP parallel regions