Giter Site home page Giter Site logo

Asking about MFEM about mfem HOT 14 CLOSED

mfem avatar mfem commented on May 22, 2024
Asking about MFEM

from mfem.

Comments (14)

v-dobrev avatar v-dobrev commented on May 22, 2024 1

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.

v-dobrev avatar v-dobrev commented on May 22, 2024

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.

ozae avatar ozae commented on May 22, 2024

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.

ozae avatar ozae commented on May 22, 2024

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.

v-dobrev avatar v-dobrev commented on May 22, 2024

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.

martemyev avatar martemyev commented on May 22, 2024

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.

v-dobrev avatar v-dobrev commented on May 22, 2024

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.

martemyev avatar martemyev commented on May 22, 2024

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.

martemyev avatar martemyev commented on May 22, 2024

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.

v-dobrev avatar v-dobrev commented on May 22, 2024

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.

tzanio avatar tzanio commented on May 22, 2024

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.

trb413 avatar trb413 commented on May 22, 2024

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.

tzanio avatar tzanio commented on May 22, 2024

Cool, thanks @trb413!

from mfem.

tzanio avatar tzanio commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.