Hello!
I'm not really good at C and I struggle for quite a long time to do something. Hope someone can help.
I am writing a user subroutine in C for a finite element (FE) solver. I would like to open a file which contains data needed in this routine. But I would like to open it just once, because the routine is called for each time step and each integration point of the meshed part of the FE problem. I though about using some kind of flag but it can't work since it is initialized at each new call of the routine.
Does anyone have an idea on how to do that?
Many thanks in advance,
ManonB