[Redhat9.0]models-3 Installation Memorandum of the Linux chapter

Source: Internet
Author: User

[redhat9.0]models-3 Installation Memorandum of the MODELS-3 chapter (not to be continued ... )

2010-01-26 11:32:54| Category: Models-3| Report | Font size Subscription

write in front: do not know because of the version or the problem of the machine, in short, smoke now into the bottleneck stage, the standoff of N long after the tutor finally insisted on, and now Models-3 had to temporarily stop, it is a pity ah. Now the main attack MM5, expect no further situation, time is not my energy consumption of Ah! ---------------------------------------------------------------------------------------------
----------------------------------------------Previous: MM5---------------------------------------------

EDSS Root (not found)
Pave version: PAVE2.1.2MCIP version: MCIP3.4.1
NETCDF version: NetCDF3.5.1
Ioapi version: IOAPI2.2
Cvsroot version: CVS1.11.20
Cmaq version: CMAQ4.3
Smoke version: SMOKE2.0----------------------------------------------- I am the dividing line of Pave---------------------------------------------
-----------------------------------------------I am the dividing line of Mcip--------------------------------------------- Objective: To convert the MM5 output data into the application interface (I/O API) format file into the chemical transport mode CCTM by the meteorological Chemical interface processing module.* I think this does not need to be installed separately, as if in the Cmaq has been installed, do not know the correct or not.
-----------------------------------------------1. Unzip M3DATA_MCIP32.tar.gz and Mcip_ V3.4.1.tar.gz, extract the Data folder and MCIP3 folder respectively; 2. Edit the makefile file, mainly to modify the path and parameters;
-----------------------------------------------I am the dividing line of NETCDF---------------------------------------------

Objective: To obtain the library file LIBNETCDF.A required by Cmaq.
-----------------------------------------------
1. Extract the SRC directory from the netcdf-3.5.1 folder/USR/LOCAL/NETCDF (easy to manage and match the environment variable);
2. Install, compile, and enter the following statements in the terminal in the CSH environment:
# setenv FC pgf90
# setenv CC gcc
# setenv Fflags "-o2"
# setenv Cppflags "-dndebug-dsunfortran"
3.#./configure--PREFIX=/USR/LOCAL/NETCDF
4.# make
# Make Test
# make install--generates the bin, include, bin, and man directories and compiles the required LIBNETCDF.A files in the Lib directory;
5.# ln-s/USR/LOCAL/NETCDF/LIB/LIBNETCDF.A/HOME/HDYL/MODELS3/LIB/NETCDF/LINUX/LIBNETCDF.A
--cmaq only need the library file libnetcdf.a, so as long as the compiled LIBNETCDF.A link to the Cmaq appropriate directory, because these folders have not been established, may be installed later Cmaq the link will be more convenient, the following IOAPI compiled LIBIOAPI.A the same 。
--The source program can be deleted, the installation seems to be able to retain the line.

-----------------------------------------------I am the dividing line of IO API---------------------------------------------

Objective: In order to obtain the library file LIBIOAPI.A required by Cmaq.
-----------------------------------------------
1. Unzip the ioapi_22.tar.gz to "/home/hdyl/ioapi_22";
2. Install and compile in CSH environment:
# setenv BIN linux2_i686pg (originally: LINUX2_X86PG, in order to be unified with the CMAQ, it changed)
# setenv CC gcc
# CD Ioapi_22
# CP Makefile.nocpl Makefile
3.# VI makeinclude.linux2_i686pg--Modify the relevant compilation items (all x86pg in this folder are changed to I686PG):
--a.cc =/USR/BIN/GCC (this may be changed, I was the original);
--b.ompflags, Omplibs for multi-CPU conditions of the option, in a single CPU should be closed (empty);
--c.fsflags=--msave,pgf90 not recognized, closed;
--d. Because GCC does not recognize the-fast in the Coptflags, the foptflags in Coptflags and-fast are closed;
--e. For archflags, select the option without-msecond-underscore and-mnosecond-underscore.
4.# make--Create the LINUX2_I686PG directory and compile the LIBIOAPI.A file in the directory;
5.# ln-s LIBIOAPI.A/HOME/HDYL/MODELS3/LIB/IOAPI_22/LIBIOAPI.A (if LIBIOAPI.A is not in the Cmaq directory).
--cmaq requires only the library file Libioapi.a, so in principle simply compile the file and place it in the appropriate directory in Cmaq.
Note: If the installation Ioapi is not installed in/home/hdyl/models3/lib/ioapi_22, the FIXED_SRC directory under the installation directory should be copied into this directory.

-----------------------------------------------I am the dividing line of Cvsroot---------------------------------------------

Purpose: In fact, I am not very clear, it seems to be related to the server.
-----------------------------------------------
1. Unzip cvs-1.11.20.tar.gz to/home/hdyl/cvsroot;
2. Setting environment variables;
3.#./configure
# make
# make Install

-----------------------------------------------I am the dividing line of Cmaq---------------------------------------------

* In the CSH environment.
1. Set Environment variables:
Setenv M3HOME/HOME/HDYL/MODELS3
setenv M3model $M 3home/models
setenv m3lib $M 3home/lib
setenv M3data $M 3home/data
setenv M3word $M 3home/scripts
2.# CD $M 3home--decompression M3DATA.tar.gz generated $m3data directory and subdirectories;
3. Create the $m3lib and its subdirectories:
# mkdir $M 3lib--back similar;
The LIBNETCDF.A and LIBIOAPI.A compiled above are respectively linked to the $m3lib/netcdf/linux and $M3LIB/IOAPI_22/LINUX2_I686PG directories.
# ln-s/USR/LOCAL/NETCDF/LIB/LIBNETCDF.A/HOME/HDYL/MODELS3/LIB/NETCDF/LINUX/LIBNETCDF.A
# ln-s LIBIOAPI.A/HOME/HDYL/MODELS3/LIB/IOAPI_22/LINUX2_I686PG/LIBIOAPI.A
* Subdirectories Pario, Dynmem (not created) are related to parallel computing.
4.# CD $M 3home--decompression Models.tar.gz$m3model directory and its subdirectories;
5.# mkdir $3work
# CD $M 3work--decompression SCRIPTS.tar.gz to generate $m3work subdirectories;
6.# CD $M 3work/build
#./bldit.m3bld
7.# CD $M 3work/stenex
#./BLDIT.SE_NOOP.PGF (single CPU calculation);
or #./BLDIT.SE.PGF (Parallel computing)
Note: Modify the path within this file as well as the compiler.
8. Compile execution Jproc, ICON, BCON, Mcip, CCTM (first day of first tier)
# CD $M 3work/jproc
#./BLDIT.JPROC.PGF---Note: Modify the path within this file (PGI, Ioapi, and NETCDF), as follows;
#./run.jproc >&! jproc.log&
-----------------------------------------------
# CD $M 3work/icon
#./BLDIT.ICON.PGF
Set FC =/usr/pgi/linux86/5.0/bin/pgf90
Set Ioapi = "${m3lib}/ioapi_22/${bld_os}_i686pg-lioapi"
Set Icl_ioapi = ${m3lib}/ioapi_22/fixed_src
Set NETCDF = "${M3LIB}/NETCDF/LINUX-LNETCDF"
#./run.icon---Note: Modify the Exec path in this file to: LINUX2_I686PG, below (may also need to change other);
-----------------------------------------------
# CD $M 3work/bcon
#./BLDIT.BCON.PGF
#./run.bcon >&! bcon.log&
-----------------------------------------------
# CD $M 3work/mcip2---MM5 data is converted into CCTM files that can be processed;
# CD BLD
# make
# CP Mcip.exe. /mcip.exe
#./run.mcip
-----------------------------------------------
After the meteorological and source emission files have been prepared, run the CCTM:
(data includes: MM5 output data, smoke data, Jproc, ICON, Bcon data)
# $M 3WORK/CCTM
#./BLDIT.CCTM.PGF
#. RUN.CCTM >&! cctm.log&
9. Refer to the Tutuoial_procedure file to calculate the coarse domain concentration field for the next day and the fine domain concentration field on the first and second days;
-----------------------------------------------
Attention:
1.CMAQ related installation and operation are carried out in Cshell environment;
2. In order to ensure the compatibility of the compiled library files libnetcdf.a, LIBIOAPI.A, LIBCVS.A, etc., at the time of installation and compilation, the same compilation environment variable setenv CC gcc should be set, otherwise it may jproc the operation of the executable program (hang, no information , resulting output).
3. Main installation Reference documents: README, Tutorial_procedure, CVS_NETCDF, Ioapi;
4. $M 3HOME:
A.data---Input and output of various types of data files, B.lib---compiled by the various library files stored in this directory;
C.models---Mode and mechanism of the original program file;
D.scripts---Working directory, storing run scripts and executable files.

-----------------------------------------------I am the dividing line of smoke---------------------------------------------

Installation process reference manual in the Help Ch12-------------------------installation-------------------------1. version 2.0, the files downloaded are:
Smoke. Linux2_x86ifc.tar.gz;smoke.nctox.data.tar.gz;smoke_install.csh;manual.zip (the first two do not need to extract), for easy, you can put these files into/home/hdyl/ Smoke folder, as Edss_root, do not need to decompress;
2. Set environment variables in. CSHRC:
Setenv Edss_root/home/hdyl/smoke
Setenv smk_home/home/hdyl/smoke--temporarily do not understand what is to do;
3.# mkdir-p $EDSS _root--(Create Smoke folder)
4.# Cd/home/hdyl/smoke
# source smoke_install.csh--Unzip and install smoke into edss_root.* Display after installation: subsys/smokev1/assigns: There is no file or directory;--Copy subsys/smoke/assigns to subsys/smokev1/assigns (I don't know if it's useful, but it doesn't seem to be used in the end)-------------------------Compile-------------------------
1.# CD $EDSS _root/scripts
# source platform--do not need to update (I think) if there is no error, and set environment variables for Edss_exe;# echo $EDSS _os, linux2--If there is a mistake to enter this;* Query variable, # echo $ variable. eg:# echo $EDSS _exe, drawn for LINUX2_X86PG.
2. Put the Io/api library file in: $EDSS _root/subsys/ioapi/bin/$EDSS _exe/libioapi.a;* post-debugging has been an error here, so, reinstall Ioapi in the Smoke folder, as described in the previous IOAPI installation, you will need to put the library file with the following Datshift file after installation/home/hdyl/smoke/subsys/ The IOAPI/BIN/LINUX2_X86PG.
Install the Io/api tool Datshift to: $EDSS _root/subsys/ioapi/bin/$EDSS _exe/datshift;--tried it, and did not see what the effect was. ==b;
Put NETCDF library file in: $EDSS _root/subsys/netcdf/bin/$EDSS _exe/libnetcdf.a;* Follow the instruction manual and Miss Wang left the folder can see there is a Ioapi_includes folder, but because do not know how to get, so had to firstCreate the/home/hdyl/smoke/subsys/ioapi_includes folder and copy the following files from the original Ioapi folder into it:ATDSC3. EXTCONST3. EXTFDESC3. EXTIODECL3. EXTNETCDF. EXTNOTICE. EXTPARMS3. EXTSTATE3. EXT
I found a consistent file in/home/hdyl/smoke/subsys/ioapi/fixed_src today, so I copied it into the Ioapi_includes folder.
3. If necessary, update the file:--This step I am running after is displayed as follows:
    • $EDSS _subsys/edss_tools/setup/sysflags --tools_root:undefined variable
    • $EDSS _subsys/filesetapi/sysflags --fs_root:undefined Variable
    • $SMKROOT/assigns/sysflags --source sysflags:MD_SRC:Undefined Variable

3.# CD $SMKROOT/scripts/make--$SMKROOT represented by/home/hdyl/smoke/subsys/smoke;

# vi makeall--Edit the file header, if it has been compiled in the previous can be selected N;* The following error occurred during Operation:Makeit:command not found.The solution is to change all Makeit in Makeall to./makeit. 4.

[Redhat9.0]models-3 Installation Memorandum of the Linux chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.