How to Add a New Variable

From KratosWiki
Revision as of 13:47, 5 December 2008 by Kazem (Talk | contribs)
Jump to: navigation, search

If you need to add a new variable to Kratos which doesn`t exist 3 passes are needed

1. define the variable it is done in .../kratos/includes/variables.h

KRATOS_DEFINE_VARIABLE(double, DIVPROJ)

2. Create & Register it is done in '.../kratos/sources/variables.cpp

KRATOS_CREATE_VARIABLE(double, DIVPROJ)
KRATOS_REGISTER_VARIABLE(double, DIVPROJ)
Personal tools
Categories