Comments (7)
Hi @jan-janssen, I didn't use PyMFEM with conda mfem. Is it install a pre-compiled binary or source code?
If so, setup.py takes --mfem-prefix --mfem-source as parameters. With pip, you need to use --install-option.
to set each of these parameters. If you want to compile it with MPI, you also give --with-parallel, --hypre-prefix
and --metis-prefix.
from pymfem.
I am a bit confused, I have the libmfem.so
installed on my system. I am just looking for the pip
command to link to this already installed version.
from pymfem.
Setup.py in PyMFEM generates a wrapper code from the MFEM source code. MFEM can be compiled with various options.
Depending the option you use, the wrapper code has to change. Therefore, if you have only libmfem.so, you can not do pip install.
from pymfem.
It was compiled with: https://github.com/conda-forge/mfem-feedstock/blob/main/recipe/build.sh
make config CXX=$CXX PREFIX=$PREFIX MFEM_SHARED=YES MFEM_STATIC=NO MFEM_USE_MPI=YES MFEM_USE_METIS_5=YES CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" LIBS="$LIBS" HYPRE_OPT="-I$PREFIX/include" GHV_CXX=$CXX_FOR_BUILD
make lib
make install
from pymfem.
We don't have a plan to change setup.py for this specific installation pattern. Probably, better approach would be to modify the feedstock and build the wrapper together.
from pymfem.
We don't have a plan to change setup.py for this specific installation pattern.
I can patch the setup.py
I just do not fully understand which option to change. I tried to add python -m pip install . -vv --mfem-prefix=${PREFIX}
but that did not work. Can you just tell me how to disable the build process?
from pymfem.
In setup.py, we run SWIG to generate a wrapper code. SWIG needs to read all C++ header files.
The location of header files is set by using --mfem-source option. If Conda package does not contain
header file, SWIG will fail and thus we can not build PyMFEM.
from pymfem.
Related Issues (20)
- Linking with external requires no-serial option
- Error after PyMFEM install HOT 1
- segment-nurbs.mesh won't run in PyMFEM HOT 1
- Typo in coefficient_common.i HOT 2
- GetMemoryType returns a python integer rather than an mfem MemoryType
- Example of calculating/plot stress or strain on ex2.py/ex17.py? HOT 11
- how to dereference swig double* returned by mfem.Vector().GetData() ? HOT 2
- VectorPyCoefficent invalid size causing crash HOT 5
- Power9 installation Failure HOT 6
- Up-to-date installation for parallel version? HOT 7
- Discrepancy in error calculation for identical meshes and solutions
- Module conflict with c++ mfem in `pyMFEM==4.5.2.1` HOT 2
- `FindPointsGSLIB::GetCode()` does not return `mfem::Array<unsigned int>` HOT 1
- Installation failure with `--with-parallel` and `--with-gslib` on v.4.5.2.1 HOT 4
- How to implement LinearFormIntegrator HOT 1
- MFEM4.6 support HOT 1
- vtk output for solutions HOT 14
- First element read by GF is 0 not the value in the file HOT 4
- can't build with external mfem HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymfem.