#include "UALClasses.h"
using namespace IdsNs;
int main(int argc, char *argv[])
{
int number;
//Open the database
IdsNs IdsNs::IDS imas(12, 2, -1, -1);
imas.open(); //Open the database
IdsNs::IDS::core_profiles ids = imas._core_profiles;
ids.get();
printf("ids_properties= comment:%s," " Homogeneous:%d\n",
ids.ids_properties.comment.c_str(),
ids.ids_properties.homogeneous_time );
number = ids.time.extent(0);
printf("Main IDS time:");
for (int j=0; j< number; j++)
{
printf("Time: %g",ids.time(j));
printf("IPValue: %g",ids.global_quantitiesx.ipy(j));
puts("");
}
// Close the pulse file
imas.close();
} |