Comments (14)
What this means is to copy the file config.hpp.in
in the config
directory to a file named config.hpp
in the same directory. Then edit config.hpp
to enable MFEM options by un-commenting some of the commented out #define
lines. The simplest option is to leave this file as it is - that should work too.
from mfem.
Hi,
The procedure for building MFEM with Visual Stuio is briefly described at the end of the INSTALL file:
Before using another build system (e.g. Visual Studio) it is necessary to create
a proper configuration header file, config/config.hpp, using the template from
config/config.hpp.in:
cp config/config.hpp.in config/config.hpp
The file config/config.hpp can then be edited to enable desired options. The
MFEM library is simply a combination of all object files obtained by compiling
the .cpp source files in the source directories: general, linalg, mesh, and fem.
Let me know if you have any further questions.
Veselin
from mfem.
ya but i can't understand what do we mean by it is necessary to create a proper configuration header file, config/config.hpp, using the template from config/config.hpp.in:
simply do i have to run it in command window?
from mfem.
yes simply when i unzip the file, config.hpp.in changed to config.hpp. but
what is next? which of the files i have to give in the directories for the
visual studio?
On Thu, Jun 9, 2016 at 2:52 AM, Veselin Dobrev [email protected]
wrote:
What this means is to copy the file config.hpp.in in the config directory
to a file named config.hpp in the same directory. Then edit config.hpp to
enable MFEM options by un-commenting some of the commented out #define
lines. The simplest option is to leave this file as it is - that should
work too.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AS4IOhRMNmels77kKAa7pjX0XxkEXMhSks5qJ1XSgaJpZM4IvqPH
.
from mfem.
The MFEM library is basically combination of all *.cpp
files from the following directories: general
, linalg
, mesh
, and fem
. If you want to build an example or miniapp, you just need to link with the library and add the main mfem directory (this is where mfem.hpp is) as an additional include path.
from mfem.
Hi All,
I've recently created a CMakeLists.txt file for configuration MFEM using cmake. My main motivation was that I use Qt Creator IDE on Linux for code development, and this IDE accepts CMake files as project files, and builds the whole tree of project sources, which is very convenient for navigation, debugging, etc. As you know, CMake also generates Visual Studio project files on Windows, so @ozae, you should be able to configure and compile MFEM on Windows relatively easily if you put CMakeLists.txt in the MFEM root directory, and config.hpp.in_cmake in the config
directory. Then simply follow CMake instructions about how to build projects for Visual Studio.
Beware, that I have not tested these files on Windows, as I don't currently have an access to it. But that works fine on my Linux machine, so I assume it should so on Windows as well.
Please, let me know if it doesn't work. Any feedback on the files is also highly appreciated.
Cheers,
Mikhail
from mfem.
Hi Mikhail,
Thank you for sharing the cmake files. I'll try them on Windows too.
If you are OK with it we can add them to MFEM.
Thanks,
Veselin
from mfem.
Hi Veselin,
Sure thing. Please, feel free to include them in your repository. My only concern is that these files were not tested on different platforms.
Cheers,
Mikhail
from mfem.
Hi Veselin,
Just wondering if you have tried this CMake file on Windows. Also, I updated it a little bit - mainly, I added MFEM_USE_* options in the CMakeLists.txt.
Cheers,
Mikhail
from mfem.
Hi Mikhail,
I have not tried the cmake build yet - I just pulled the new version of CMakeLists.txt
.
Thanks for the update,
Veselin
from mfem.
Hi Mikhail,
Thanks for sending us your CMake file. I like that it does not over-write the current makefile
files so both build systems can be used side-by-side.
Can the CMake file be extended to support building the examples and miniapps (like make all
)?
Cheers,
Tzanio
from mfem.
Tzanio,
Veselin asked me to take a look, so I'm working on this. I have some
changes I'll push in the branch that will build the whole thing. I've been
offline all weekend; back on Thursday.
Cheers,
Tom
On Mon, Jul 4, 2016 at 10:00 AM, Tzanio Kolev [email protected]
wrote:
Hi Mikhail,
Thanks for sending us your CMake file. I like that it does not over-write
the current makefile files so both build systems can be used side-by-side.Can the CMake file be extended to support building the examples and
miniapps (like make all)?Cheers,
Tzanio—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#65 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ARCODpbfftWRJECY5pjhzIeor-6Y1bvHks5qSTwwgaJpZM4IvqPH
.
from mfem.
Cool, thanks @trb413!
from mfem.
We have started an internal branch for CMake which should be part of the next major release (3.3), so I'm closing this issue.
from mfem.
Related Issues (20)
- Undefined Zoltan symbols when compiling examples/pumi HOT 3
- The program reports an error about SetPrintLevel of FGMRESSolver HOT 1
- Set no precontioner in GMRESSolver HOT 2
- more than three dimensional FEM ? HOT 9
- CUDA warnings HOT 1
- miniapps navier HOT 8
- How to generate the right-hand side using an analytical solution? HOT 3
- Bdr attributes with ParSubMesh HOT 18
- Alternate Norm definition for IterativeSolvers HOT 4
- Marking / Deleting internal boundaries HOT 5
- free() invalid pointer NewtonSolver destructor HOT 6
- How to compile a single example HOT 4
- Gauss-Lobatto Basis Affecting Discontinuous Initial Conditions in DG HOT 8
- What does the Trans.Weight() do HOT 4
- Build a MFEM project with an example in qt-creator HOT 4
- Add Support for Higher-Order H1 Pyramid Basis Functions HOT 1
- UniformRefinement() is anisotropic for periodic-segment.mesh HOT 2
- Inconsistent large/nan mass matrix entries HOT 1
- Domainintegrator markers and matrix free gpu HOT 4
- Some question about explicit and implicit time ODE solvers HOT 2
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 mfem.