HARPgroup / cbp_wsm

1 stars 0 forks source link

Compile Errors for cbp 5.3.2 on Ubuntu #1

Open rburghol opened 7 years ago

rburghol commented 7 years ago

System: Ubuntu 16.04 Compiler: f77 (installed with default gcc packages) rburghol/hspf/wiki/compile_all.log.1

Using code/src/compile_all.csh to do all parts of the CBP model (hspf + supporting libs and CBP specific helper utils) there are a lot of errors out of the box.

First: Error: ‘a2’ argument of ‘max’ intrinsic at (1) must be REAL(4) randomeffect.f:98:68:

             DailyIndEff(j,nb,nBmp) = min(DailyIndEff(j,nb,nBmp),1)
                                                                1
eahmadis commented 7 years ago

Changing 1 to 1.0 resolves this since the compiler looks for a real number and not an integer.