[Nek5000-users] Storing dragy coefficient

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Nov 22 10:18:24 CST 2017


I think it should do the trick.

If you want to use the values in a different subroutine, you must use common block. If the values are used in the same subroutine as they are stored, then save data should be sufficient.

Marco


On Nov 22, 2017, at 11:10 AM, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:

Thank you marco.

So you mean if my problem is for 100 time steps and if i declare a variable like below

      real dum(100)
      save dum

 and if i write

     dum(istep)= dragy(1)                     # I have one object

I could store all the dragy coefficient into this array permenently?

Because I just want to use the previous values that means (dum(istep-1)) in some other functions.


Thanks with regards


Sijo GEORGE


________________________________
De: "nek5000-users" <nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>>
À: "nek5000-users" <nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>>
Envoyé: Mercredi 22 Novembre 2017 16:58:15
Objet: Re: [Nek5000-users] Storing dragy coefficient

if I correctly understand your problem, you will need to look into common block or save data that are Fortran capabilities.

Marco

On Nov 22, 2017, at 10:49 AM, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:

Hi,

I was working on storing dragy coefficient on an array. But its not getting permanently stored in the varibale after the next time step. That means I could not access the previous stored value from the array. Is there any way to store and access dragy of different time steps?

Thanks

with regards

Sijo GEORGE
_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov<mailto:Nek5000-users at lists.mcs.anl.gov>
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users


_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov<mailto:Nek5000-users at lists.mcs.anl.gov>
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov<mailto:Nek5000-users at lists.mcs.anl.gov>
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20171122/706d819a/attachment.html>


More information about the Nek5000-users mailing list