#include "UALClasses.h"
using namespace IdsNs;
int main(int argc, char *argv[])
{
int number = 10; //number of elements
IdsNs::IDS imas(123, 1, 123, 1);
imas.create();
//
//! Fill the ids fields with data
IdsNs::IDS::core_profiles ids= imas._core_profiles;
ids.ids_properties.homogeneous_time = 1; //! Mandatory to define this property
ids.ids_properties.comment = "This is a test ids V3 Put by C++";
ids.time.resize(10);
ids.global_quantities.ip.resize(10);
for(int i=0; i < 10; i++)
{
ids.global_quantities.ip(i) = i * 10 ;
ids.time(i) = i;
}
printf("\nStart Putting the core_profiles IDS\n");
ids.put();
printf("core_profiles IDS shot:%d, run:%d, refshot:%d, refrun:%d saved\n", shot, run, refshot, refrun);
vi imas.close();
} |