# AMET tier 3 program

**URL:** <https://forum.cmascenter.org/t/amet-tier-3-program/1914>\
**Category:** AMET\
**Created:** [November 16, 2020, 3:08pm UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914 "2020-11-16T15:08:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![qluo](https://avatars.discourse-cdn.com/v4/letter/q/90ced4/32.png) [@qluo](https://forum.cmascenter.org/u/qluo)\
**Post date:** [November 16, 2020, 3:08pm UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914/1 "2020-11-16T15:08:12Z")

</div>

Hi,

I am trying to install AMET for the first time. When running make to compile the “combine” program, I got this error.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/a7425b7f3e3d417709c918365a916039b28eed0c.png)

I am using the ioapi and netcdf libraries I used for CMAQ. I do not know what led to the error and would so appreciate it if anyone can help with it.

Thanks,  
Qian

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 16, 2020, 4:23pm UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914/2 "2020-11-16T16:23:46Z")

</div>

[Makefile.combine.txt](https://forum.cmascenter.org/uploads/short-url/lar1FVQGvRLI7QhaQIwJZ3pXdBx.txt) (2.1 KB)

_make_ can’t find _mpiifort_, which is a particular MPI-enabled wrapper built around the Intel Fortran compiler _ifort_.

_combine_ doesn’t need MPI. But _bldmod_ assumed that everything that you’re building does (and unless you’re building the CMAQ CCTM, **nothing** that you’re building needs MPI.

Assuming you used binary type `BIN` (e.g., `Linux2_ia64ifort`) to build your I/O API and netCDF, try putting the attached _Makefile.combine.txt_ (sorry about the “.txt” extension, but the Forum software insists on it) for your particular installation into the _BLD…_ directory for _combine_, edit it for your I/O API installation (change the  
`IODIR =`  
line to match your I/O API installation-directory), and then doing a command that uses that `BIN`, like

```
*make -f Makefile.combine.txt BIN=Linux2_ia64ifort*

```

It will be very like building the _m3tools_ programs, except that the build-directory and the source-directory are the same…

---

<div class="post-metadata">

**Author:** ![qluo](https://avatars.discourse-cdn.com/v4/letter/q/90ced4/32.png) [@qluo](https://forum.cmascenter.org/u/qluo)\
**Post date:** [November 16, 2020, 5:18pm UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914/3 "2020-11-16T17:18:47Z")

</div>

> [@cjcoats](#):
>
> `Linux2_ia64ifort`

Thanks for the guidance. I used your makefile.combine to replace the original one but got another error. This time, make could not find ifort. Except for the ioapi directory, anything else I need to change?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/a4ceaa7b62b226ab2b54168a94c4928347b2c3cb.png)  
Thanks,  
Qian

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 16, 2020, 6:01pm UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914/4 "2020-11-16T18:01:29Z")

</div>

This says the (build type dependent) Fortran compiler is not in your current `PATH`.

Did you build the I/O API (library _libioapi.a_ and _m3tools_ programs)? If so, what build-type did you use? (From what you had written earlier, I was assuming you did _Linux2\_x86\_64ifort_, which assumes you used the Intel _ifort_ and _icc_ compilers. In which case, what does the command

`which ifort`

say?)

You need to use that build-type as the _BIN_ in the _make_-command I gave you.

If you didn’t build the I/O API, then: did you get it from somewhere; and if so, what BIN-type was used? …and do you have the compilers installed properly for that build-type? If not, you need to install them.

---

<div class="post-metadata">

**Author:** ![qluo](https://avatars.discourse-cdn.com/v4/letter/q/90ced4/32.png) [@qluo](https://forum.cmascenter.org/u/qluo)\
**Post date:** [November 18, 2020, 1:25am UTC](https://forum.cmascenter.org/t/amet-tier-3-program/1914/5 "2020-11-18T01:25:41Z")

</div>

Hi cjcoats,

Thanks for your help. These errors were solved by changing some environment settings and adding -qopenmp for Intel in LINK\_FLAGS. I also modified the script you gave me to compile other tier 3 softwares.

Thanks,  
Qian
