Neko  0.8.1
A portable framework for high-order spectral element flow simulations
utils Module Reference

Utilities. More...

Data Types

interface  neko_error
 

Functions/Subroutines

pure integer function filename_suffix_pos (fname)
 Find position (in the string) of a filename's suffix. More...
 
pure integer function filename_tslash_pos (fname)
 Find position (in the string) of a filename's trailing slash. More...
 
subroutine filename_suffix (fname, suffix)
 Extract a filename's suffix. More...
 
subroutine filename_chsuffix (fname, new_fname, new_suffix)
 Change a filename's suffix. More...
 
character(len=100) function, dimension(:), allocatable split_string (string, delimiter)
 Split a string based on delimiter (tokenizer) OBS: very hacky, this should really be improved, it is rather embarrasing code. More...
 
pure integer function linear_index (i, j, k, l, lx, ly, lz)
 Compute the address of a (i,j,k,l) array with sizes (1:lx, 1:ly, 1:lz, :) More...
 
pure logical function index_is_on_facet (i, j, k, lx, ly, lz, facet)
 
pure integer function, dimension(4) nonlinear_index (linear_index, lx, ly, lz)
 Compute (i,j,k,l) array given linear index with sizes (1:lx, 1:ly, 1:lz, :) More...
 
subroutine neko_error_plain (error_code)
 
subroutine neko_error_msg (error_msg)
 
subroutine neko_warning (warning_msg)
 

Variables

integer, parameter neko_fname_len = 1024
 

Detailed Description

Utilities.

Various utility functions

Function/Subroutine Documentation

◆ filename_chsuffix()

subroutine utils::filename_chsuffix ( character(len=*)  fname,
character(len=*)  new_fname,
character(len=*)  new_suffix 
)

Change a filename's suffix.

Definition at line 68 of file utils.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ filename_suffix()

subroutine utils::filename_suffix ( character(len=*)  fname,
character(len=*)  suffix 
)

Extract a filename's suffix.

Definition at line 61 of file utils.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ filename_suffix_pos()

pure integer function utils::filename_suffix_pos ( character(len=*), intent(in)  fname)

Find position (in the string) of a filename's suffix.

Definition at line 47 of file utils.f90.

Here is the caller graph for this function:

◆ filename_tslash_pos()

pure integer function utils::filename_tslash_pos ( character(len=*), intent(in)  fname)

Find position (in the string) of a filename's trailing slash.

Definition at line 54 of file utils.f90.

Here is the caller graph for this function:

◆ index_is_on_facet()

pure logical function utils::index_is_on_facet ( integer, intent(in)  i,
integer, intent(in)  j,
integer, intent(in)  k,
integer, intent(in)  lx,
integer, intent(in)  ly,
integer, intent(in)  lz,
integer, intent(in)  facet 
)

Definition at line 129 of file utils.f90.

◆ linear_index()

pure integer function utils::linear_index ( integer, intent(in)  i,
integer, intent(in)  j,
integer, intent(in)  k,
integer, intent(in)  l,
integer, intent(in)  lx,
integer, intent(in)  ly,
integer, intent(in)  lz 
)

Compute the address of a (i,j,k,l) array with sizes (1:lx, 1:ly, 1:lz, :)

Definition at line 122 of file utils.f90.

Here is the caller graph for this function:

◆ neko_error_msg()

subroutine utils::neko_error_msg ( character(len=*)  error_msg)

Definition at line 184 of file utils.f90.

◆ neko_error_plain()

subroutine utils::neko_error_plain ( integer, optional  error_code)

Definition at line 171 of file utils.f90.

◆ neko_warning()

subroutine utils::neko_warning ( character(len=*)  warning_msg)

Definition at line 190 of file utils.f90.

Here is the caller graph for this function:

◆ nonlinear_index()

pure integer function, dimension(4) utils::nonlinear_index ( integer, intent(in)  linear_index,
integer, intent(in)  lx,
integer, intent(in)  ly,
integer, intent(in)  lz 
)

Compute (i,j,k,l) array given linear index with sizes (1:lx, 1:ly, 1:lz, :)

Definition at line 155 of file utils.f90.

Here is the call graph for this function:

◆ split_string()

character(len=100) function, dimension(:), allocatable utils::split_string ( character(len=*)  string,
character(len=*)  delimiter 
)

Split a string based on delimiter (tokenizer) OBS: very hacky, this should really be improved, it is rather embarrasing code.

Definition at line 81 of file utils.f90.

Here is the caller graph for this function:

Variable Documentation

◆ neko_fname_len

integer, parameter utils::neko_fname_len = 1024

Definition at line 38 of file utils.f90.