CMAQ

De Wikicima
(Diferencias entre revisiones)
Saltar a: navegación, buscar
(ioapi)
(ioapi)
Línea 12: Línea 12:
   
 
Instalándolas en <code>/home/solange.luque/libraries/</code>
 
Instalándolas en <code>/home/solange.luque/libraries/</code>
  +
  +
=== intel ===
  +
<pre style=shell>
  +
mkdir -p ioapi/v3.2-20200828/intel
  +
cd ioapi/v3.2-20200828/intel
  +
tar xvfz ~/ioapi-3.2-20200828.tar.gz
  +
mv ioapi-3.2-20200828/* ./
  +
rmdir ioapi-3.2-20200828
  +
export BIN=Linux2_x86_64ifort
  +
mkdir Linux2_x86_64ifort
  +
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/*.so Linux2_x86_64ifort/
  +
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdf.a Linux2_x86_64ifort/
  +
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdff.a Linux2_x86_64ifort/
  +
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*a Linux2_x86_64ifort/
  +
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*so Linux2_x86_64ifort/
  +
ln -s /usr/lib/x86_64-linux-gnu/*curl*a Linux2_x86_64ifort/
  +
ln -s /usr/lib/x86_64-linux-gnu/*curl*so Linux2_x86_64ifort/
  +
cp ioapi/Makefile.nocpl ioapi/Makefile
  +
cp m3tools/Makefile.nocpl m3tools/Makefile
  +
cp Makefile.template Makefile
  +
</pre>
  +
  +
Editamos los Makefiles (<code>Makefile</code> y <code>ioapi/Makeinclude.Linux2_x86_64ifort</code>)
  +
<pre style="shell">
  +
diff Makefile Makefile.template
  +
138,145c138,145
  +
< BIN = Linux2_x86_64ifort
  +
< BASEDIR = ${PWD}
  +
< INSTALL = /home/solange.luque/MODELOS/CMAQ/LIBRARIES/ioapi
  +
< LIBINST = $(INSTALL)/$(BIN)
  +
< BININST = $(INSTALL)/$(BIN)
  +
< CPLMODE = nocpl
  +
< IOAPIDEFS =
  +
< PVMINCL =
  +
---
  +
> # BIN = Linux2_x86_64
  +
> # BASEDIR = ${PWD}
  +
> # INSTALL = ${HOME}
  +
> # LIBINST = $(INSTALL)/$(BIN)
  +
> # BININST = $(INSTALL)/$(BIN)
  +
> # CPLMODE = nocpl
  +
> # IOAPIDEFS =
  +
> # PVMINCL =
  +
</pre>
  +
  +
Instalamos librerías
  +
<pre style="shell">
  +
make configure >& run_make.log
  +
make all >& run_make.log
  +
</pre>
  +
  +
=== gnu ===
 
<pre style=shell>
 
<pre style=shell>
 
mkdir -p ioapi/v3.2-20200828/intel
 
mkdir -p ioapi/v3.2-20200828/intel

Revisión de 12:04 19 oct 2022

Instalando y usando CMAQ en hydra

Contenido

Instalando

Instalación en /home/solange.luque/MODELOS/CMAQ.

Existe un foro: https://forum.cmascenter.org/t/ioapi-installtion-unable/805

ioapi

Agarrar librerías ioapi

Instalándolas en /home/solange.luque/libraries/

intel

mkdir -p ioapi/v3.2-20200828/intel
cd ioapi/v3.2-20200828/intel
tar xvfz ~/ioapi-3.2-20200828.tar.gz
mv ioapi-3.2-20200828/* ./
rmdir ioapi-3.2-20200828
export BIN=Linux2_x86_64ifort
mkdir Linux2_x86_64ifort
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/*.so Linux2_x86_64ifort/
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdf.a Linux2_x86_64ifort/
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdff.a Linux2_x86_64ifort/
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*a Linux2_x86_64ifort/
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*so Linux2_x86_64ifort/
ln -s /usr/lib/x86_64-linux-gnu/*curl*a Linux2_x86_64ifort/
ln -s /usr/lib/x86_64-linux-gnu/*curl*so Linux2_x86_64ifort/
cp ioapi/Makefile.nocpl ioapi/Makefile
cp m3tools/Makefile.nocpl m3tools/Makefile
cp Makefile.template Makefile

Editamos los Makefiles (Makefile y ioapi/Makeinclude.Linux2_x86_64ifort)

 diff Makefile Makefile.template 
138,145c138,145
<  BIN        = Linux2_x86_64ifort
<  BASEDIR    = ${PWD}
<  INSTALL    = /home/solange.luque/MODELOS/CMAQ/LIBRARIES/ioapi
<  LIBINST    = $(INSTALL)/$(BIN)
<  BININST    = $(INSTALL)/$(BIN)
<  CPLMODE    = nocpl
<  IOAPIDEFS  = 
<  PVMINCL    =
---
> # BIN        = Linux2_x86_64
> # BASEDIR    = ${PWD}
> # INSTALL    = ${HOME}
> # LIBINST    = $(INSTALL)/$(BIN)
> # BININST    = $(INSTALL)/$(BIN)
> # CPLMODE    = nocpl
> # IOAPIDEFS  = 
> # PVMINCL    =

Instalamos librerías

make configure >& run_make.log
make all >& run_make.log

gnu

mkdir -p ioapi/v3.2-20200828/intel
cd ioapi/v3.2-20200828/intel
tar xvfz ~/ioapi-3.2-20200828.tar.gz
mv ioapi-3.2-20200828/* ./
rmdir ioapi-3.2-20200828
export BIN=Linux2_x86_64ifort
mkdir Linux2_x86_64ifort
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/*.so Linux2_x86_64ifort/
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdf.a Linux2_x86_64ifort/
ln -s /opt/netcdf/netcdf-4/intel/2021.4.0/lib/libnetcdff.a Linux2_x86_64ifort/
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*a Linux2_x86_64ifort/
ln -s /opt/hdf5/hdf5-1.10.5/intel/2021.4.0/lib/libhdf5*so Linux2_x86_64ifort/
ln -s /usr/lib/x86_64-linux-gnu/*curl*a Linux2_x86_64ifort/
ln -s /usr/lib/x86_64-linux-gnu/*curl*so Linux2_x86_64ifort/
cp ioapi/Makefile.nocpl ioapi/Makefile
cp m3tools/Makefile.nocpl m3tools/Makefile
cp Makefile.template Makefile

Editamos los Makefiles (Makefile y ioapi/Makeinclude.Linux2_x86_64ifort)

 diff Makefile Makefile.template 
138,145c138,145
<  BIN        = Linux2_x86_64ifort
<  BASEDIR    = ${PWD}
<  INSTALL    = /home/solange.luque/MODELOS/CMAQ/LIBRARIES/ioapi
<  LIBINST    = $(INSTALL)/$(BIN)
<  BININST    = $(INSTALL)/$(BIN)
<  CPLMODE    = nocpl
<  IOAPIDEFS  = 
<  PVMINCL    =
---
> # BIN        = Linux2_x86_64
> # BASEDIR    = ${PWD}
> # INSTALL    = ${HOME}
> # LIBINST    = $(INSTALL)/$(BIN)
> # BININST    = $(INSTALL)/$(BIN)
> # CPLMODE    = nocpl
> # IOAPIDEFS  = 
> # PVMINCL    =

Instalamos librerías

make configure >& run_make.log
make all >& run_make.log

Usando

Herramientas personales