# A bug found in MCIP v5.1

**URL:** <https://forum.cmascenter.org/t/a-bug-found-in-mcip-v5-1/2330>\
**Category:** MCIP\
**Created:** [May 11, 2021, 8:38pm UTC](https://forum.cmascenter.org/t/a-bug-found-in-mcip-v5-1/2330 "2021-05-11T20:38:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haohe.umcp](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@haohe.umcp](https://forum.cmascenter.org/u/haohe.umcp)\
**Post date:** [May 11, 2021, 8:38pm UTC](https://forum.cmascenter.org/t/a-bug-found-in-mcip-v5-1/2330/1 "2021-05-11T20:38:09Z")

</div>

I found a bug in the MCIP v5.1 source code

In Line 535 of metvars2ctm.f90, the code is

xclay\_px(:,: ) = clay\_px (sc:er,sr:er)

which should be

xclay\_px(:,: ) = clay\_px (sc:ec,sr:er)

It won’t crash MCIP, but can lead to some warning. Please correct it in the release version.

Hao

---

<div class="post-metadata">

**Author:** ![tlspero](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tlspero](https://forum.cmascenter.org/u/tlspero)\
**Post date:** [May 14, 2021, 12:59am UTC](https://forum.cmascenter.org/t/a-bug-found-in-mcip-v5-1/2330/2 "2021-05-14T00:59:23Z")

</div>

@haohe.umcp –

Thank you for bringing this to our attention. You are correct that this is a bug. It will be corrected (as you indicated) in a forthcoming release.

–Tanya
