NaN values when passing from a subroutine to another
Posted: Mon Jan 13, 2025 8:50 pm
Hello,
I'm trying to run a C++ function within a cs_user_physical_properties.f90 subroutine. Everything has been implemented just fine following how this C++/Fortran coupling is done in other standard routines, but i don't get why when passing fields from the fortran to C++ NaN values will appear. The only additional processing that the data will be getting in the C++ routine is a stacking operation, to have a single input tensor instead of multiple ones. I posted the routines as well to give more context.
I tried on a separate testing case and this seems to not be happening.
What can possibly be the cause of this behavior? And eventually how can i fix it?
Thanks to everyone for the help,
Francesco
I'm trying to run a C++ function within a cs_user_physical_properties.f90 subroutine. Everything has been implemented just fine following how this C++/Fortran coupling is done in other standard routines, but i don't get why when passing fields from the fortran to C++ NaN values will appear. The only additional processing that the data will be getting in the C++ routine is a stacking operation, to have a single input tensor instead of multiple ones. I posted the routines as well to give more context.
I tried on a separate testing case and this seems to not be happening.
What can possibly be the cause of this behavior? And eventually how can i fix it?
Thanks to everyone for the help,
Francesco