Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CHEAT SHEET
 ITMIMAS
module loading
shell> module load xmllib
shell> module load imas
pkgconfig (Fortran)pkg-config --libs --cflags itmconstantsxmllib-<compiler>.pcpkg-config --libs --cflags imas-constants-<compiler> (where <compiler>=ifort,gfortran,...)
using library (Fortran)

classic:

Code Block
use xml_file_reader, only: fill_param
use euitm_schemas, only: type_param
use itm
_constants
_types
use xml2eg_mdl
use euitm_xml_parser, only: element, tree, euitm_xml_parse, find_parameter

xpath:

Code Block
use xml_file_reader, only: fill_param
use euitm_schemas, only: type_param
use euitm_xml_parser, only: element, tree, euitm_xml_parse, find_parameter
use xmllib_pathquery, only: xmlget, xmlget_allocatable, xmlsize
use string_manipulation_tools, only: count_words_in_string

xml2eg wrapper:

Code Block
use f90_file_reader, only: file2buffer
use xml2eg_mdl, only: xml2eg_parse_memory, xml2eg_get, type_xml2eg_document, xml2eg_free_doc, set_verbose
use imas_imas_constants
ITMIMAS
Code Block
# You can always find sample codes inside XML_LIB
# ITM version
 
> cd $ITM_XMLLIB_DIR/$ITM_XMLLIB_VERSION/$DATAVERSION/example/
> tree -L 1 --charset=ascii
.
|-- classic
|-- cpp
|-- xml2eg
`-- xpath
Code Block
 

...