version 0.6.0
How to export a variable defined in the NTS file (to Fortran code)

The following guidelines will help you to export a variable defined in the NTS file (to Fortran code)

<em>NTS</em> part

Double precision, integer or boolean can be exported:

double  height = 1.0;
integer direction = 2;
boolean test = true;

export height;
export direction;
export test;

Fortran part

use variables_ui

double precision :: height
integer :: direction
logical :: test

height=ui_get_double("height")
direction=ui_get_integer("direction")
test=ui_get_boolean("test")