![]() Then source the file to make these settings active for current session: source. bashrc add these lines so that they will be set for future logins:Įxport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/mpich/lib ![]() bashrc in the home directory of current user to set the environment variable NETCDF to the path preceeding include/netcdf.inc (in this case it is /usr).Īt the bottom of the file. Update the database used by locate: sudo updatedbĪnd locate the netcdf.inc file and the mpich/lib locate locate mpich/lib Install ncl: sudo apt-get install ncl-ncarg Set environment variables Install ncdump: sudo apt-get install netcdf-bin Install netCDF for Fortran: sudo apt-get install libnetcdff-dev ![]() Install JasPer JPEG-2000 library: sudo apt-get install libjasper-dev Install libpng: sudo apt-get install libpng-dev Install HDF - MPICH version: sudo apt-get install libhdf5-mpich-dev Install mpich: sudo apt-get install mpich Install gfortran: sudo apt-get install gfortran These are some installation notes taken in the process of installing WRF-ARW version 3.8 on a new Intel-based i7 8-core computer with Linux Ubuntu 16.04 LTS. ![]() The WRF-ARW 3.8 was released in April 2016. There are two main dynamical solvers, the ARW (Advanced Research WRF) core and the NMM (Nonhydrostatic Mesoscale Model) core. gfortran is not backwards compatible with all Fortran 77 code, so sometimes it's necessary to install fort77 for full Fortran 77 compatibility.WRF, the Weather Research and Forecasting Model, is a mesoscale numerical weather prediction system for meteorological applications across scales from tens of meters to thousands of kilometers. gfortran is backwards compatible with the same Hello world code example shown above, and the executable file that it generates will run. It uses the gcc backend to generate optimized code. This is the GNU Fortran 95 compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. ![]() GNU Fortran 95 compiler can also be installed in all currently supported versions of Ubuntu by running the following command: sudo apt install gfortran This creates an executable file named hello-world. To compile the code run the following command: fort77 hello-world.f -o hello-world To test fort77 save this Hello world Fortran 77 code as hello-world.f: program hello_world fort77 can be installed in all currently supported versions of Ubuntu by running the following commands: sudo apt update It will accept the full Fortran 77 language defined by the ANSI X3.9-1978 standard. The fort77 utility is the interface to the Fortran compilation system. This may mean that the package is missing, has been obsoleted, or is only available from another source. Package g77 is not available in any currently supported version of Ubuntu, but is referred to by another package. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |