Author Topic: nh1 issue  (Read 2793 times)

Dipankar

  • New Member
  • *
  • Posts: 2
nh1 issue
« on: March 02, 2015, 02:00:28 PM »
Hi,

I am using a user element. The value of nh1 is showing correctly while it is within isw=1, however while I am trying to see the value outside of isw=1, lets say in isw=3, it is showing an abstract value. Please suggest how I can rectify this issue.
Also, I have not found the source folder “F90” after unzip the source file. I am using Fortran 90. Is the mentioned issue related to ‘comblak’ common file or compiler version? Please advise.

Thanks,
Dipankar

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: nh1 issue
« Reply #1 on: March 02, 2015, 06:20:32 PM »
Quanties like nh1 or np(*) are offset values to where the arrays (hr(*) or mr(*)) are stored.  They may be initalized to some value (usually zero), however, once they are defined and associated to a particular use they can have values that are either positive or negative, depending on where the computer is placing the hr(1) location.  You should not try to make any sense to what they mean.  Values are stored for element history variables starting at hr(nh1) for t_n values and hr(nh2) for t_n+1 values.  You set how large the additional values of hr(nh1+n) can get.  We do use nh1 to do this in isw = 1 but later use the same location for the pointer offset.