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 building synthesizer, #9

Closed nagarajvernekar30 closed 1 year ago

nagarajvernekar30 commented 1 year ago

I was trying to build the synthesizer, but I keep getting error for all of them (MOOG, turbospec and spectrum). I tried installing it in a separate environment but still does not work. The errors are given below is while compiling turbospectrum.

`Error: Rank mismatch in argument 'pr' at (1) (rank-1 and scalar) ../src/hlinprof.f:136:35:

136 | CALL VCS(HLIND,XNED,TD,DEL,1,NLOW,NUP,HVCSFILE) | 1 Error: Rank mismatch in argument 'del' 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:141:33:

141 | CALL VCS(HLIND,XNED,TD,DEL,1,NLOW,NUP,HVCSFILE) | 1 Error: Rank mismatch in argument 'del' 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) ../src/hlinprof.f:234:36:

234 | CALL VCS(STARKD,XNED,TD,DEL1,1,NLOW,NUP,HVCSFILE) | 1 Error: Rank mismatch in argument 'del' at (1) (rank-1 and scalar) ../src/rinteg.f:19:72:

19 | 10 rinteg = rinteg + fint(i+1) | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1) ../src/rinteg.f:46:72:

46 | 1 a(j)=f(j1)-x(j1)d+x(j)x(j1)*c(j) | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 1 at (1) ../src/molfys.f:20:72:

20 | 1 TE(K+1)=TE(K)*TEX | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 1 at (1) ../src/molfys.f:29:72:

29 | 2 DEH2P=B2(K)*TE(K)+DEH2P | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 2 at (1) make[1]: [Makefile:173: babsma_lu] Error 1 make[1]: Leaving directory '/home/adorea/iSpec/synthesizer/turbospectrum/exec-gf' make: [Makefile:44: synthesizer/turbospectrum/bin/babsma_lu] Error 2`

I am trying to do this in Ubuntu 22.04 with the latest python as well as updated gfortran.

nagarajvernekar30 commented 1 year ago

It solved itself after I redownloaded the source code.