Page 1 of 1

Initialization from a 3D post-processing output using MEDCoupling: issue in iteration index

Posted: Wed Jul 03, 2024 12:57 pm
by fracenvi
Hello everyone,

I'm trying to start a simulation using custom thermochemical fields, making use of the MEDCoupling tool but i have one major issue. I did manage to compile the cs_user_initialization.c file successfully as well as to convert all of my fields to med format but during run phase it keeps giving me that message:

terminate called after throwing an instance of 'INTERP_KERNEL::Exception'
what(): No such iteration (0,0) in existing field 'Temperature' in file '/home/cenvinzf@coria.fr/workdir/cavity_ann_init/nn_couple/3D_import/restart_ann_prova.med' ! Available iterations are : (1,1),
terminate called after throwing an instance of 'INTERP_KERNEL::Exception'


I already checked that changing the iteration index no field get passed to the initialization. Also, i only have one time step iteration to retrieve data from, and i don't get why it keeps saying that the only available iteration is (1,1) despite having clearly stated in the guide that it needs to be (0,0) if only one iteration exists.

I attached the files useful to reproduce the error.

Thanks to everyone that can help,
Francesco

Re: Initialization from a 3D post-processing output using MEDCoupling: issue in iteration index

Posted: Wed Jul 03, 2024 1:22 pm
by Yvan Fournier
Hello,

The iteration number and order (i.e. sub-iteration) in the MED file may depend on how that file was written, so using 1,1 might be the solution. If no field gets updated after that, there may be another issue, such as a mismatch in field names, shifter coordinates, ...

Best regards,

Yvan