marblestation / iSpec

Download input files from https://www.cfa.harvard.edu/~sblancoc/iSpec/dev/input.tar.gz
http://www.blancocuaresma.com/s/
GNU Affero General Public License v3.0
29 stars 6 forks source link

Error while compiling: Rank mismatch #5

Closed D00C closed 3 years ago

D00C commented 3 years ago

Hello, as the title says i get some errors while compiling, specifically on the make turbospectrum step, and i'm not sure how to solve them the first two that appear say

../src/babsma.f:1003:41:
  818 |         CALL ABSKO(NEWT,ntau,T,PE,1,1,ABSKK,SPRIDD)
      |                                      2
......
 1003 |         CALL ABSKO(NEWT,1,T(K),PE(K),1,1,ABSK,SPRID)
      |                                         1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
../src/babsma.f:1107:45:
  818 |         CALL ABSKO(NEWT,ntau,T,PE,1,1,ABSKK,SPRIDD)
      |                                      2
......
 1107 |             CALL ABSKO(NEWT,1,T(K),PE(K),I,J,ABSK,SPRID)
      |                                             1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)

Then almost at the end appear three more

../src/hlinprof.f:136:21:

  136 |             CALL VCS(HLIND,XNED,TD,DEL,1,NLOW,NUP,HVCSFILE)
      |                     1
Error: Rank mismatch in argument ‘pr’ at (1) (rank-1 and scalar)
../src/hlinprof.f:141:19:

  141 |           CALL VCS(HLIND,XNED,TD,DEL,1,NLOW,NUP,HVCSFILE)
      |                   1
Error: Rank mismatch in argument ‘pr’ at (1) (rank-1 and scalar)
../src/hlinprof.f:234:21:

  234 |             CALL VCS(STARKD,XNED,TD,DEL1,1,NLOW,NUP,HVCSFILE)
      |                     1
Error: Rank mismatch in argument ‘pr’ at (1) (rank-1 and scalar)

I'm trying to compile on manjaro linux and am pretty sure i installed all the dependencies, sorry if this is a very simple problem but i'm pretty new to fortran and the solutions i found online where ineffective

D00C commented 3 years ago

I redownloaded the files from the master repo and for some reason i was able to compile it this time, the errors still showed but this time only as warnings so they didn't interfere, so i'll close the issue.

marblestation commented 3 years ago

I think I had that problem in the past and I fixed in some newer version, so maybe you had an older version of iSpec. In any case, I'm glad it is working now!