HARPgroup / cbp_wsm

1 stars 0 forks source link

compiling hspf cbp on ubuntu 20.04 #28

Closed rburghol closed 2 years ago

rburghol commented 3 years ago

Compiler and Fortran version info

When compiler has errors, redirect output to file to scan

Compile has many errors re: variable named "OFF"

  987 |       CALL PVAL(N,OFF,VAL,VOFREE)
      |                  1
Error: Actual argument contains too few elements for dummy argument ‘off’ (1/20) at (1)
make: *** [<builtin>: hrintss.o] Error 1
library ../../lib/g_den_hspflib.a does not exist,

There is a Global variable called OFF with (1) dimension

C     + + + LOCAL VARIABLES + + +
      INTEGER     I,N,OFF(1),REM,WORDI,VO,SCLU,SGRP

But the subroutine it is called in does not have a dimension

CALL PVAL(N,OFF,WS,VO)
...
      SUBROUTINE PVAL
     I                (N,OFF,VAL,VO)
C
C     + + + PURPOSE + + +
C     Put one or more values into the buffer/extension and write
C     to the tss as necessary
C
C     + + + KEYWORDS + + +

(hacky) Solution is to tell compiler to ignore these problems (worked in previous version of fortran) #6

First you have to find the file that calls it

Error: Actual argument contains too few elements for dummy argument ‘off’ (1/20) at (1)
make: *** [<builtin>: hrintss.o] Error 1
library ../../lib/hspflib.a does not exist,
use one of the following commands to generate it:
     make
     make all
rm -f *.o ../../lib/ICPRBhspflib.a
Removed files generated by make.