Hi all,
I am trying to extend the implemented Green-Ampt method for Telemac2D. For this I need to save some parameters from one timestep to the next.
For example, I want to save the time when the precipitation starts in the simulation (TPS). I define TPS as a double precision and add the line "SAVE TPS", so that once it starts raining TPS will get the current time (AT) and from then on, the subroutine can use the saved value of TPS.
However, I also need to save some vectors. I have one vector, which represents the ponding time (TPSA) at every time step. This vector is initialized with zeros and will be calculated, once the rain starts. If the current time exceeds the calculated ponding time at one node, the ponding time at this node should not be calculated again in the next time step, but kept to that value from there on. At this step I basically fail
It seems, that values from some nodes are copied to other nodes at random timesteps.
Can someone maybe give me a hint how to accomplish this?
"SAVE TPSA" does not work, since it is not just a number, but a vector. I tried to define TPSA as a BIEF OBJECT in declarations_telemac2d, but this produced a very weird error, once I started running the simulation.
P.S.: Obviously, I am still rather unexperienced in fortran programming, so it might be a very basic mistake I am making, but I have not found the solutions in other forum posts so far.