# PETSc issue while running on FF++ -cs 15.2

**URL:** <https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380>\
**Category:** General Discussion\
**Created:** [December 10, 2021, 8:11am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380 "2021-12-10T08:11:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhk](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zhk/32/874_2.png) [@zhk](https://community.freefem.org/u/zhk)\
**Post date:** [December 10, 2021, 8:11am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/1 "2021-12-10T08:11:50Z")

</div>

While using FREEFEM++ -cs 15.2, I am facing this problem

Error line number 754, in file macro: buildOverlapEdgePeriodicRecursive in C:\Program Files (x86)\FreeFem++\idp\macro\_ddm.idp, before token mpiWtime

current line = 754  
Compile error :  
line number :754, mpiWtime  
error Compile error :  
line number :754, mpiWtime  
code = 1 mpirank: 0

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 10, 2021, 8:53am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/2 "2021-12-10T08:53:18Z")

</div>

You are using `FreeFem++`, not `FreeFem++-mpi`, so the error is expected. I don’t know how to use `FreeFem++-mpi` together with `FreeFem++-cs`, though.

---

<div class="post-metadata">

**Author:** ![zhk](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zhk/32/874_2.png) [@zhk](https://community.freefem.org/u/zhk)\
**Post date:** [December 13, 2021, 7:13am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/3 "2021-12-13T07:13:40Z")

</div>

I tried with FreeFem++ `-mpi` but i get the same error…

 ![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/b12a165fd9c49cbfcd11582456fb8b6f8ec964a1.png)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 13, 2021, 7:20am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/4 "2021-12-13T07:20:38Z")

</div>

How did you launch the code?

---

<div class="post-metadata">

**Author:** ![zhk](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zhk/32/874_2.png) [@zhk](https://community.freefem.org/u/zhk)\
**Post date:** [December 13, 2021, 7:55am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/5 "2021-12-13T07:55:08Z")

</div>

Like this…

 ![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/8b37b34a5dbfbadee22acce50037867767962c67.png)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 13, 2021, 7:57am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/6 "2021-12-13T07:57:57Z")

</div>

OK, that means you are still using `FreeFem++`. Please go see this [tutorial](https://youtu.be/-Aw2O46V2bo?t=453) to learn how to use `FreeFem++-mpi` in Windows.

---

<div class="post-metadata">

**Author:** ![zhk](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zhk/32/874_2.png) [@zhk](https://community.freefem.org/u/zhk)\
**Post date:** [December 13, 2021, 8:42am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/7 "2021-12-13T08:42:45Z")

</div>

Why I cann’t use mpi in FreeFem+±cs?

 ![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/03a3988f51cece0536275bff1b9e507a9420cac0.png)

It gives me the following error  
ffgui: catandrun: CreateProcess("“c:\Program Files\Microsoft HPC Pack 2012\Bin\mpiexec.exe” -n 0 “C:\Program Files\FreeFem+±cs-14.3\FreeFem+±mpilang” -MainPath “C:\Program Files\FreeFem+±cs-14.3” -CommName localhost -CommPort 10002 -AbortFFGraphicsDataAt 0 -AbortServerSocketAt 0 -FreeFemVerbosity 1 -LocalClient "): failed with error 2: The system cannot find the file specified.

ffgui: FreeFem++ has stopped unexpectedly

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 13, 2021, 8:46am UTC](https://community.freefem.org/t/petsc-issue-while-running-on-ff-cs-15-2/1380/8 "2021-12-13T08:46:11Z")

</div>

I don’t know, I don’t use `FreeFem++-cs`.
