The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
|
Fortran interface definitions for Open FUSION Toolkit common runtime functions.
Functions | |
ctypes_numpy_array (type, ndim) | |
Create a ctypes argument object for a given numpy array type and dimension. | |
ctypes_subroutine (function, argtypes=None, restype=None) | |
Create a ctypes object for a FORTRAN subroutine (no return value) | |
Variables | |
c_bool_ptr = ctypes.POINTER(c_bool) | |
ctypes logical (bool) pointer alias | |
c_bool_ptr_ptr = ctypes.POINTER(c_bool_ptr) | |
ctypes logical (bool) double pointer alias | |
c_double_ptr = ctypes.POINTER(c_double) | |
ctypes 64-bit floating point (double) pointer type | |
c_double_ptr_ptr = ctypes.POINTER(c_double_ptr) | |
ctypes 64-bit floating point (double) double pointer | |
c_int_ptr = ctypes.POINTER(c_int) | |
ctypes 32-bit integer (int) pointer alias | |
c_int_ptr_ptr = ctypes.POINTER(c_int_ptr) | |
ctypes 32-bit integer (int) double pointer alias | |
c_struct = ctypes.Structure | |
ctypes struct alias | |
c_void_ptr_ptr = ctypes.POINTER(c_void_p) | |
ctypes void double pointer | |
float | eC = 1.60217663e-19 |
Electron charge. | |
int | mu0 = numpy.pi*4.E-7 |
Vacuum magnetic permeability. | |
ctypes_numpy_array | ( | type, | |
ndim | |||
) |
Create a ctypes argument object for a given numpy array type and dimension.
type | NumPy c-compatible datatype (https://numpy.org/doc/stable/user/basics.types.html) |
ndim | Number of dimensions in array |
ctypes_subroutine | ( | function, | |
argtypes = None , |
|||
restype = None |
|||
) |
Create a ctypes object for a FORTRAN subroutine (no return value)
function | Function object from ctypes library |
argtypes | List of types for each argument (optional) |
c_bool_ptr = ctypes.POINTER(c_bool) |
ctypes logical (bool) pointer alias
c_bool_ptr_ptr = ctypes.POINTER(c_bool_ptr) |
ctypes logical (bool) double pointer alias
c_double_ptr = ctypes.POINTER(c_double) |
ctypes 64-bit floating point (double) pointer type
c_double_ptr_ptr = ctypes.POINTER(c_double_ptr) |
ctypes 64-bit floating point (double) double pointer
c_int_ptr = ctypes.POINTER(c_int) |
ctypes 32-bit integer (int) pointer alias
c_int_ptr_ptr = ctypes.POINTER(c_int_ptr) |
ctypes 32-bit integer (int) double pointer alias
c_struct = ctypes.Structure |
ctypes struct alias
c_void_ptr_ptr = ctypes.POINTER(c_void_p) |
ctypes void double pointer
float eC = 1.60217663e-19 |
Electron charge.
int mu0 = numpy.pi*4.E-7 |
Vacuum magnetic permeability.