Skip to content

Create a new attribute

Marco Garten edited this page Jan 12, 2017 · 2 revisions

You are here: Home > Developer Documentation > Create a new attribute


If you would like to create a new particle attribute that you can then find in the HDF5 or ADIOS output, find the necessary steps below.

  1. Create either an alias(newAttribute) or a
    value_identifier(<Type>,<newAttributeName>,<initialValue>) in speciesAttributes.param
  2. Add specializations for
    Unit<>,
    UnitDimension<>,
    MacroWeighted<>,
    WeightingPower<>
    in speciesAttributes.unitless
  3. Use your attribute by creating an identifier for the particle and accessing particle[newAttribute_]