[Nek5000-users] common variables

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Aug 7 15:54:32 CDT 2014


Sorry, a have put the question in this thread,

please delete it.

Van

  07.08.2014, 1:01:34 пользователь (nek5000-users at lists.mcs.anl.gov) написал:


  I have a number of parameters, which I use in several subroutines in *usr
  files, namely userchk, userbc and userf.
  I am still not very familiar with code of nek5000 and fortan, so my question
  is what is the best way to define only once the whole set of parameters,
  which would be visible for all subroutines.

  I saw here in that it is recommended to define local variables as common.
  Is it better to define your own common block or to user preexisting in nek
  like
  common /scrns/ ?
  and in which subroutine it is better to initialize them?

  Thank you in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20140808/f6b81cc3/attachment.html>


More information about the Nek5000-users mailing list