ivezic / dusty

Radiative transfer code Dusty
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

error compiling V4 on Ubuntu 20.04 #8

Open stellaCL opened 2 years ago

stellaCL commented 2 years ago

Hello,

I am trying to install V4 on a new machine with Ubuntu 20.04 and gcc 9.4.0 for gfortran. But I get the following error messages. I'm not an expert in building code, so if someone has any suggestions please let me know.

I also followed the discussion on the -std=legacy flag, but that didn't help.

 (base) newmachine@athena:~/mysoft/dusty$ make
 gfortran -O3 -lgomp -fopenmp -o dusty dusty.f90
 dusty.f90:536:15:

  536 |         print*,
         |               1
Error: Comma after * at (1) not allowed without I/O list
dusty.f90:10092:25:

10092 | 555 amu(j)=dcos(theta(j))
           |                         1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 555 at (1)
dusty.f90:503:22:

  503 |      subroutine Kernel(path,lpath,tau,Nmodel)
         |                      1
Warning: Interface mismatch in global procedure ‘kernel’ at (1): ALLOCATABLE mismatch in argument 'tau' [-Wargument-mismatch]
make: *** [Makefile:2: all] Error 1
DingshanDeng commented 2 years ago

I encountered with the same error message:

536 |         print*,
Error: Comma after * at (1) not allowed without I/O list

So, it is the comma after the print* at line 536 in the dusty.f90 caused the error. I deleted that comma in the end of that line and everything then worked well.

ivezic commented 2 years ago

Thank you very much for reporting this fix!