2013年10月4日金曜日

GOTM-FABM developers version compilation progress 2

Following this instruction (http://www.gotm.net/index.php?go=software&page=installation), I had some technical (fortran) problem during the step 5.3-5.4.

Problem 1: input/input.F90 Line 158

      FATAL 'input module has been initialized without depth information; depth-explicit inputs can therefore not be registered.'

My compiler (gfortran) seems not to like words being too long. I thought of two solutions:

1) make the compiler being able to deal with long statements; or
2) make the sentence short.

Solution 1:

I modified my executable file for 'make' as follows:

#HakaseA
EXTRAS = -ffree-line-length-none
#HakaseZ


Solution 2: 

I modified 'input.F90' as follows:

!HakaseA
!      FATAL 'input module has been initialized without depth information; depth-explicit inputs can therefore not be registered.'
      FATAL 'Check input/input.F90 line 158 for detail.'
!HakaseZ

Either way works but I decided to stick with Solution 2, as I was not sure what else the compiler option 1 could do. 

0 件のコメント:

コメントを投稿