Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
Derived types and interfaces | Functions/Subroutines
sll_m_nml_mesh_1d_cart Module Reference

Description

initialization of 1d cartesian mesh from namelist

Author
Michel Mehrenberger


Partly generated from mesh_1d_cart.gnml file

character(len=256) choice "landau"

and num4.clone file

_1
_2
_3
_4

Default parameters correspond to namelist

&mesh_1d_cart
choice = "landau"
/

and clones as

&mesh_1d_cart_1
choice_1 = "landau"
/

...

&mesh_1d_cart_4
choice_4 = "landau"
/

Examples of calls of interface (generic)

!print namelist info
call sll_o_nml_mesh_1d_cart( &
filename, &
proc_id=sll_f_get_collective_rank(sll_v_world_collective))

Possibilities for namelists variables

choice = "unif" -> sll_m_nml_mesh_1d_unif_cart
choice = "landau" -> sll_m_nml_mesh_1d_landau_cart
choice = "two_grid" -> sll_m_nml_mesh_1d_two_grid_cart
initialization of 1d landau cartesian mesh from namelist
initialization of 1d two grid cartesian mesh from namelist
initialization of 1d uniform cartesian mesh from namelist

Examples of calls of interface (specific):

  1. Allocation and initialization of real(kind=f64), pointer :: array(:) according to choice read from namelist mesh_1d_cart in filename
    call sll_o_nml_mesh_1d_cart(filename,array)
  2. Same, but read this time, from namelist mesh_1d_cart_1.
    call sll_o_nml_mesh_1d_cart(filename,array,clone="_1")

Derived types and interfaces

type  sll_t_nml_mesh_1d_cart
 
interface  sll_o_nml_mesh_1d_cart
 

Functions/Subroutines

subroutine s_nml_mesh_1d_cart_array (filename, array, clone, proc_id)
 create 1d array from namelist More...
 
subroutine s_nml_mesh_1d_cart_print (filename, clone, proc_id)
 print namelist info More...
 

Function/Subroutine Documentation

◆ s_nml_mesh_1d_cart_array()

subroutine sll_m_nml_mesh_1d_cart::s_nml_mesh_1d_cart_array ( character(len=*), intent(in)  filename,
real(kind=f64), dimension(:), intent(out), pointer  array,
character(len=*), intent(in), optional  clone,
integer(kind=i32), intent(in), optional  proc_id 
)
private

create 1d array from namelist

Parameters
[in]filenamenamelist file input
[out]arrayoutput array
[in]cloneoptional choice of clone
[in]proc_idoptional id of proc

Definition at line 148 of file sll_m_nml_mesh_1d_cart.F90.

◆ s_nml_mesh_1d_cart_print()

subroutine sll_m_nml_mesh_1d_cart::s_nml_mesh_1d_cart_print ( character(len=*), intent(in)  filename,
character(len=*), intent(in), optional  clone,
integer(kind=i32), intent(in), optional  proc_id 
)
private

print namelist info

Parameters
[in]filenamenamelist file input
[in]cloneoptional choice of clone
[in]proc_idoptional id of proc

Definition at line 201 of file sll_m_nml_mesh_1d_cart.F90.

    Report Typos and Errors