# MPAS for MPAS\_CMAQ

**URL:** <https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276>\
**Category:** MPAS-CMAQ\
**Created:** [October 8, 2024, 10:27pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276 "2024-10-08T22:27:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [October 8, 2024, 10:27pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/1 "2024-10-08T22:27:55Z")

</div>

Hi,  
It seems I encountered an issue downloading MPAS. When I tried using the command `git clone -b MPAS7.0 git@github.com:USEPA/MPAS.git MPAS`, there was no response. This is in reference to the instructions provided in the MPAS-CMAQ user guide at

> **[MPAS\_CMAQ\_guide.pdf](https://github.com/USEPA/CMAQ/blob/MPAS_CMAQ/DOCS/Users_Guide/PDF/MPAS_CMAQ_guide.pdf)**

I appreciate any help you can provide. Thank you!  
Feng

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [October 8, 2024, 11:03pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/2 "2024-10-08T23:03:49Z")

</div>

Hi Feng,

Please try the following command.

```auto
git clone -b MPAS7.0 https://github.com/USEPA/MPAS.git MPAS

```

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [October 8, 2024, 11:07pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/3 "2024-10-08T23:07:12Z")

</div>

Liz,  
It works. Thank you very much.

Feng

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [November 21, 2024, 8:53pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/4 "2024-11-21T20:53:55Z")

</div>

Hello Liz,  
I am following the 2.0.2 MPAS instructions from the MAPS\_CAMQ\_guide.pdf linked in a previous post. When I run the following command:

```auto
make pgi CORE=atmosphere USE_PIO2=true

```

I encounter the error message:

```auto
make: *** No rule to make target 'pgi'. Stop.

```

To proceed, I defined the compilers (FC and CPP) in the Makefile. However, I then received another error related to a missing file, `mpas_derived_types.F`, and the following message was triggered:

```auto
NVFORTRAN-F-0004-Unable to open MODULE file mpas_derived_types.mod (mpas_atm_dimensions.F: 35)
NVFORTRAN/x86-64 Linux 22.1-0: compilation aborted

```

I have been unable to locate the `mpas_derived_types.mod` or `mpas_derived_types.F` module file anywhere.

Any guidance or assistance would be greatly appreciated. Thank you for your help.

Feng

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [November 21, 2024, 9:41pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/5 "2024-11-21T21:41:23Z")

</div>

> [@FengLiu](#):
>
> `mpas_derived_types.F`,

Hi Feng,  
I am working on compiling and running MPAS-CMAQ using gfortran. I don’t have any experience with using pgi. Are you using a machine that uses environment modules? If so, please load the environment module for the pgi compiler.

Here are the modules that I am using for the gcc/openmpi build:

```auto
 module list

```

Output:

```auto
Currently Loaded Modules:
  1) gcc/9.1.0 2) openmpi_4.0.1/gcc_9.1.0 3) netcdf-4.5.3-for_nc4/gcc-9.1

```

It is important to install all of the underlying libraries required for MPAS. I have had some difficulty doing this, but the following script, library versions and configuration options downloaded from this page worked for me: [https://www2.mmm.ucar.edu/people/duda/files/mpas/sources/  
 ](https://www2.mmm.ucar.edu/people/duda/files/mpas/sources/)

You can try the following command to verify that the mpif90 version is using the pgi compiler

```auto
which mpif90
which pgf90

```

The routine that you are looking for can be found using the command:

```auto
find . -name mpas_derived_types.F

```

Output:

```auto
./src/framework/mpas_derived_types.F

```

The above source code was obtained using the git clone command provided in section 2.0.2

```auto
git clone -b MPAS7.0 git@github.com:USEPA/MPAS.git MPAS

```

or if the above doesn’t work for you (it requires setting up a password-protected SSH key.) then you can use:

```auto
git clone -b MPAS7.0 https://github.com/USEPA/MPAS.git

```

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [December 9, 2024, 5:30pm UTC](https://forum.cmascenter.org/t/mpas-for-mpas-cmaq/5276/6 "2024-12-09T17:30:01Z")

</div>

Hello Liz,  
I successfully built the latest version of MPAS 8.2.2 on both a Linux cluster and Windows Subsystem for Linux, and I ran the test cases without issues.

However, I faced challenges when attempting to compile the older version, MPAS 7.0, which is coupled with CMAQ 5.5 and requires PIO to be compiled. After downloading the PIO package (PIO 2.6.2), I encountered difficulties due to the absence of key files, such as the configure script. This required additional time and effort, so I decided to move forward with the latest version, MPAS 8.2.2, instead.

My question is:

When will the updated version of MPAS-CMAQ be released?

The updated MPAS-CMAQ using MPAS 8.2.2, as mentioned in the [MPAS-CMAQ user guide](https://github.com/USEPA/CMAQ/blob/MPAS_CMAQ/DOCS/Users_Guide/PDF/MPAS_CMAQ_guide.pdf), it states that “Version 8.2.2 does not require PIO to be compiled, which will eventually simplify its use with CMAQ.” This means that PIO is no longer necessary for MPAS 8.2.2.

Thanks,

Feng
