Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
utils.f90 File Reference

Go to the source code of this file.

Data Types

interface  utils::neko_error
 

Modules

module  utils
 Utilities.
 

Functions/Subroutines

pure integer function, public utils::filename_suffix_pos (fname)
 Find position (in the string) of a filename's suffix.
 
pure integer function, public utils::filename_tslash_pos (fname)
 Find position (in the string) of a filename's trailing slash.
 
subroutine, public utils::filename_suffix (fname, suffix)
 Extract a filename's suffix.
 
subroutine, public utils::filename_chsuffix (fname, new_fname, new_suffix)
 Change a filename's suffix.
 
integer function, public utils::extract_fld_file_index (fld_filename, default_index)
 Extracts the index of a field file. For example, "myfield.f00045" will return 45. If the suffix of the file name is invalid, returns a default index value.
 
character(len=100) function, dimension(:), allocatable, public utils::split_string (string, delimiter)
 Split a string based on delimiter (tokenizer) OBS: very hacky, this should really be improved, it is rather embarrasing code.
 
pure integer function, public utils::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, :)
 
pure integer function, dimension(4), public utils::nonlinear_index (linear_index, lx, ly, lz)
 Compute (i,j,k,l) array given linear index with sizes (1:lx, 1:ly, 1:lz, :)
 
pure logical function, public utils::index_is_on_facet (i, j, k, lx, ly, lz, facet)
 
subroutine utils::neko_error_plain (error_code)
 Reports an error and stops execution.
 
subroutine utils::neko_error_msg (error_msg)
 Reports an error and stops execution.
 
subroutine, public utils::neko_type_error (base_type, wrong_type, known_types)
 Reports an error allocating a type for a particular base pointer class.
 
subroutine, public utils::neko_warning (warning_msg)
 Reports a warning to standard output.
 
character(:) function, allocatable, public utils::concat_string_array (array, sep, prepend)
 Concatenate an array of strings into one string with array items separated by spaces.
 

Variables

integer, parameter, public utils::neko_fname_len = 1024