Opened 4 years ago

Closed 4 years ago

#136 closed Support (fixed)

various compilation problems

Reported by: ebilgic Owned by: pesei
Priority: major Milestone:
Component: FP coding/compilation Version: FLEXPART 9.2 beta
Keywords: errors, warnings, erf.f90, grib_api.mod, grib_api, setup, compile, install Cc:

Description

Hello.

I have been studying atmospheric dispersion of radionuclides origin a nuclear accident and I want to use flexpart for this purpose. I have been trying to compile flexpart for few months but I have encountered with some problems.

  1. Any version of Flexpart which I used needs a file, "grib_api.mod", and current versions of grib_api doesn't create this file. Therfore I use an old version of grib_api (1.9.5).
  1. Flexpart 9.2 doen't work because erf.f90 file has some problems. So I have to use flexpart 8.2 or flexpart 9.2-beta.
  1. There are some warnings, when Flexpart 8.2 (32 bit or 64 bit) compiles. (Deleted features: Pause statement at (1)). I guess it is about fortran language. The compilation doesn't stop becase they are only warning. But after complete the conversion of all fortran file to object file, compilation always stops suddenly.
  1. There are no warnings or errors in Flexpart 9.2. But after complete the conversion of all fortran file to object file, compilation always stops suddenly, too.

As a result I cannot compile flexpart. I don't understand what my fault is?

Attachments (1)

flexpart82.png (296.6 KB) - added by ebilgic 4 years ago.
the last screen (flexpart 8.2, flexpart 9.2 and flexpart 9.2 beta)

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by ebilgic

the last screen (flexpart 8.2, flexpart 9.2 and flexpart 9.2 beta)

comment:1 Changed 4 years ago by pesei

  • Component changed from FP other to FP coding/compilation
  • Owner set to pesei
  • Priority changed from critical to major
  • Status changed from new to accepted
  • Type changed from Defect to Support
  • Version changed from FLEXPART 9.0.2 to FLEXPART 9.2 beta

comment:2 Changed 4 years ago by pesei

Any version of Flexpart which I used needs a file, "grib_api.mod", and current versions > of grib_api doesn't create this file. Therfore I use an old version of grib_api (1.9.5).

If you don't get the grib_api.mod, something is wrong with your grib_api installation. Check well!

Flexpart 9.2 doen't work because erf.f90 file has some problems. So I have to use flexpart 8.2 or flexpart 9.2-beta.

If you have a recent version of gfortran, you can remove erf.f90 from your makefile, as it is now an intrinsic function. Otherwise you have to adapt the declaration part of the subroutine. There is already a ticket for this problem (#49)

There are some warnings, when Flexpart 8.2 (32 bit or 64 bit) compiles. (Deleted features: Pause statement at (1)). I guess it is about fortran language. The compilation doesn't stop becase they are only warning. But after complete the conversion of all fortran file to object file, compilation always stops suddenly.

You don't need to worry about WARNINGs. Your screen dump does not look like linking step having failed.

comment:3 follow-up: Changed 4 years ago by ebilgic

Thanks for your feedback. I realized that I forgot to give my system configuration. I use Ubuntu 14.04. and my working directory is: /home/isaac/flexpart/

As for your replies, I have a few points to note:

  1. "If you don't get the grib_api.mod, something is wrong with your grib_api installation. Check well!"

I use jasper-1.900.1. If I don't install jasper accurately, grib configuration fails. When I configure grib_api-1.9.5 or grib_api-1.14.4 (with jasper), I receive configuration completed message. Then I follow the same steps (make, make check, make install) for both of the two versions of grib_apis. Here, while grib_api-1.9.5 creates the "grib_api.mod" file, grib_api-1.14.4 does not create this file. I have checked the entire files in the PC and I could not find it anywhere.

  1. " You don't need to worry about WARNINGs. Your screen dump does not look like linking step having failed."

My flexpart only converts fortran files to object files. It doesn't create output files and does not send any error or successful installation messages. Shouldn't it give error messages if something is wrong in the installation? If nothing is wrong, then I dont understand why it doesn't create the output files?

Am I missing something?

Thanks for your help.

comment:4 in reply to: ↑ 3 Changed 4 years ago by pesei

Replying to ebilgic:

Thanks for your feedback. I realized that I forgot to give my system configuration. I use Ubuntu 14.04. and my working directory is: /home/isaac/flexpart/

As for your replies, I have a few points to note:

I use jasper-1.900.1. If I don't install jasper accurately, grib configuration fails. When I configure grib_api-1.9.5 or grib_api-1.14.4 (with jasper), I receive configuration completed message. Then I follow the same steps (make, make check, make

Yes, jasper is needed.

install) for both of the two versions of grib_apis. Here, while grib_api-1.9.5 creates the "grib_api.mod" file, grib_api-1.14.4 does not create this file. I have checked the entire files in the PC and I could not find it anywhere.

That is very strange. From your description I understand that you install it by hand, not as a distro package. I get include/grib_api.mod in my install dir with version 1.14.4. What is the content of your include/ dir?

My flexpart only converts fortran files to object files. It doesn't create output files and does not send any error or successful installation messages. Shouldn't it give error messages if something is wrong in the installation? If nothing is wrong, then I dont understand why it doesn't create the output files?

There is no success message for the compilation & linking. If you don't get an error message, the executable must be there. Please look up in the makefile the definition of its name and path and verify whether it really does not exist.

You are saying "output files" are missing. What do you mean here?

comment:5 Changed 4 years ago by ebilgic

I've solved all problems about compilation andg grib_api.

grbi_api creates "grib_api.mod" in 64bit Ubuntu. I've studied in 32 bit ubuntu before.

" You are saying "output files" are missing. What do you mean here? "

This is my fault. I have expected output files (grid_conc_20120517130000_001,trajectories etc.) in the "output" directory after the compilation. But, I had to run an executable file (FLEXPART_GFS_GFORTRAN).

Thanks for your feedback and help.

comment:6 Changed 4 years ago by pesei

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.
hosted by ZAMG