# NC4PAR with AGRIF

**URL:** <https://forum.croco-ocean.org/t/nc4par-with-agrif/333>\
**Category:** compilation-installation\
**Tags:** nesting, compilation-installation\
**Created:** [February 14, 2022, 3:37pm UTC](https://forum.croco-ocean.org/t/nc4par-with-agrif/333 "2022-02-14T15:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vcombes](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/v/ba9def/32.png) [@vcombes](https://forum.croco-ocean.org/u/vcombes)\
**Post date:** [February 14, 2022, 3:37pm UTC](https://forum.croco-ocean.org/t/nc4par-with-agrif/333/1 "2022-02-14T15:37:04Z")

</div>

I m just sharing a solution that works for me  
If you are unable to compile using:  
#define NC4PAR  
#define AGRIF  
#define AGRIF\_2WAY

change “mpif.h” to ‘mpif.h’ in def\_his.F and def\_rst.h

It works for me !

(Note that “mpif.h” works if not using AGRIF and AGRIF\_2WAY)

V.

---

<div class="post-metadata">

**Author:** ![vcombes](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/v/ba9def/32.png) [@vcombes](https://forum.croco-ocean.org/u/vcombes)\
**Post date:** [February 14, 2022, 3:43pm UTC](https://forum.croco-ocean.org/t/nc4par-with-agrif/333/2 "2022-02-14T15:43:58Z")

</div>

I was using croco-v1.1

Just realized that this was fixed in croco-v2.1 !

V.
