NOAA-EMC / NCEPLIBS-ip

Fortran 90 subprograms to be used for interpolating between nearly all grids used at NCEP.
Other
5 stars 9 forks source link

interesting include directory names #24

Closed edwardhartnett closed 2 years ago

edwardhartnett commented 4 years ago

Instead of the usual "include" directory, this package creates some interesting include directory names:

 /home/ed/NCEPLIBS/NCEPLIBS-ip:
  total used in directory 24 available 187782844
  drwxrwxr-x 6 ed ed 4096 Sep 30 06:49 .
  drwxrwxr-x 7 ed ed 4096 Sep 30 06:49 ..
  drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_4
  drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_8
  drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_d
  drwxrwxr-x 3 ed ed 4096 Sep 30 06:49 lib

Within the include_4 directory, I find:

  /home/ed/NCEPLIBS/NCEPLIBS-ip/include_4:
  total used in directory 40 available 187782720
  drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 .
  drwxrwxr-x 6 ed ed 4096 Sep 30 06:49 ..
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd00_mod.mod
  -rw-r--r-- 1 ed ed  516 Sep 30 06:48 gdswzd01_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd03_mod.mod
  -rw-r--r-- 1 ed ed  531 Sep 30 06:48 gdswzd04_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd05_mod.mod
  -rw-r--r-- 1 ed ed  516 Sep 30 06:48 gdswzdcb_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzdcd_mod.mod
  -rw-r--r-- 1 ed ed  531 Sep 30 06:48 gdswzd_mod.mod

Why all the mod files?

GeorgeGayno-NOAA commented 4 years ago

Instead of the usual "include" directory, this package creates some interesting include directory names:

/home/ed/NCEPLIBS/NCEPLIBS-ip:
 total used in directory 24 available 187782844
 drwxrwxr-x 6 ed ed 4096 Sep 30 06:49 .
 drwxrwxr-x 7 ed ed 4096 Sep 30 06:49 ..
 drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_4
 drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_8
 drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 include_d
 drwxrwxr-x 3 ed ed 4096 Sep 30 06:49 lib

Within the include_4 directory, I find:

  /home/ed/NCEPLIBS/NCEPLIBS-ip/include_4:
  total used in directory 40 available 187782720
  drwxr-xr-x 2 ed ed 4096 Sep 30 06:49 .
  drwxrwxr-x 6 ed ed 4096 Sep 30 06:49 ..
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd00_mod.mod
  -rw-r--r-- 1 ed ed  516 Sep 30 06:48 gdswzd01_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd03_mod.mod
  -rw-r--r-- 1 ed ed  531 Sep 30 06:48 gdswzd04_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzd05_mod.mod
  -rw-r--r-- 1 ed ed  516 Sep 30 06:48 gdswzdcb_mod.mod
  -rw-r--r-- 1 ed ed  515 Sep 30 06:48 gdswzdcd_mod.mod
  -rw-r--r-- 1 ed ed  531 Sep 30 06:48 gdswzd_mod.mod

Why all the mod files?

There is a set for each precision version of the library - single, mixed, double.

edwardhartnett commented 4 years ago

OK, so this is similar to what is happening with the sp library? See https://github.com/NOAA-EMC/NCEPLIBS-ip/issues/226

If so, we should use fortran interfaces to solve this problem. @GeorgeGayno-NOAA do you agree?

GeorgeGayno-NOAA commented 4 years ago

OK, so this is similar to what is happening with the sp library? See NOAA-EMC/NCEPLIBS-ip#226

If so, we should use fortran interfaces to solve this problem. @GeorgeGayno-NOAA do you agree?

That is one way to do it. I would use double precision for all computations.

edwardhartnett commented 4 years ago

I have raised your point here: https://github.com/NOAA-EMC/NCEPLIBS-ip/issues/226.

edwardhartnett commented 2 years ago

OK, this is a hard problem. See discussion in NOAA-EMC/NCEPLIBS-sp#76. I will close this issue.