# PyFR2.0.0 partition error with scotch-v7.0.4

**URL:** <https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054>\
**Category:** Errors\
**Created:** [14 March 2024 03:01 UTC](https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054 "2024-03-14T03:01:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndmao001](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@ndmao001](https://pyfr.discourse.group/u/ndmao001)\
**Post date:** [14 March 2024 03:01 UTC](https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054/1 "2024-03-14T03:01:45Z")

</div>

Hi everyone,  
Recently I’m trying to partition the test cases’ mesh in PyFR-2.0.0 with scotch-v7.0.4, but trouble happens when I input command `pyfr partition -p scotch -e quad:3 -e trti:1 2 inc-cylinder.pyfrm .` , the error message is given below:

- AttributeError: /home/ndmao/sfw/scotch/scotch-v7.0.4/lib/libscotch.so: undefined symbol: SCOTCH\_numSizeof

I’ve installed the scotch following the recommended process on their github site, here is my installation command:

```auto
$ tar -xvf scotch-v7.0.4.tar.gz
$ cd scotch-v7.0.4
$ mkdir build
$ cd build
$ source /home/software/app_env/openmpi-4.0.1_oneAPI-2021-2.0.2997_NVIDIA-HPC-SDK-22.3.sh

# add three commands into the /scotch-v7.0.4/CMakelists.txt
add_library(scotch_shared SHARED src/libscotch)
set_target_properties(scotch_shared PROPERTIES LINKER_LANGUAGE C OUTPUT_NAME "scotch")
set(LIBRARY_OUTPUT_PATH /home/ndmao/sfw/scotch/scotch-v7.0.4/lib)

$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/ndmao/sfw/scotch/scotch-v7.0.4
$ make -j5
$ make install
$ export PATH=/home/ndmao/sfw/scotch/scotch-v7.0.4/bin:$PATH
$ export LD_LIBRARY_PATH=/home/ndmao/sfw/scotch/scotch-v7.0.4/lib:$LD_LIBRARY_PATH

```

Now I just don’t know how to deal with this problem, forgiving me for being a newbie at compiling programs, I’d be grateful if someone could helpe me with that. By the way, PyFR2.0.0 runs well on my cluster account without partition and parallel under Python3.10.12.  
Best wishes,  
Mao

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [14 March 2024 10:58 UTC](https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054/2 "2024-03-14T10:58:37Z")

</div>



---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [14 March 2024 12:05 UTC](https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054/3 "2024-03-14T12:05:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [14 March 2024 13:36 UTC](https://pyfr.discourse.group/t/pyfr2-0-0-partition-error-with-scotch-v7-0-4/1054/4 "2024-03-14T13:36:25Z")

</div>

SCOTCH has likely been compiled incorrectly. On a working build:

```auto
$ nm -gD /usr/lib64/libscotch.so | grep SCOTCH_numSizeof
00000000000569c0 T SCOTCH_numSizeof

```

where you can see the symbol is present. You will want to follow up with the SCOTCH developers around specifics of building a shared library on your platform.

Regards, Freddie.
