Versions Compared

Key

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

...

It is a difficult choice to decide whether the methods should look for the subsets in the 'subset' AoS by their identifier names or by their dictionary indices (the idea to assign fixed places in the AoS to the subsets seems very bad because it can result in numerous bugs and confusions if it happens that the AoS requires changes). Now the subsets are found by their names. The main reason for this choice is that we have many subsets that have no standard dictionary indices (subsets of edges with given MPs, subset for averages). It is possible to introducing custom indices for them, but it seems a way to great confusion.

Storage of 'extra_data' is yet to be done (after adding the corresponding extra part to the grid).

Module constants

 ! Name of the subset to which the values at all triangles are attached
character(len=ids_string_length), parameter :: main_subset_label = 'pol3' 
 ! Name of the subset to which the average value is attached
character(len=ids_string_length), parameter :: average_subset_label = 'average'

The constants are the identifier names by which the subsets are found by the methods of this module when writing an EIRENE tally (given as a type(eirene_data)-structure) to IMAS IDS and, vice versa, reading it from IDS. The 'main_part' component is associated with the grid subset of all triangles (named 'pol3'); the 'average' component, with the subset having the name 'average'. 

 Methods provided

  • put_quantity_to_ids
    Put a type(eirene_data)-structure to IDS.
  • get_quantity_from_ids
    Get a type(eirene_data)-structure from an IDS (not suitable for the 'equilibrium' IDS).
  • get_quantity_from_equilibrium

  • put_quantity_for_single_subset

  • get_quantity_for_single_subset

  • get_quantity_for_single_subset_in_equilibrium

...