Giter Site home page Giter Site logo

How to compile a single example about mfem HOT 4 CLOSED

Wayne901 avatar Wayne901 commented on September 20, 2024
How to compile a single example

from mfem.

Comments (4)

v-dobrev avatar v-dobrev commented on September 20, 2024

If you want to use CMake, Spack will not be very useful -- MFEM's Spack package uses the GNU make build system, for now.

For CMake build instructions, see here:

mfem/INSTALL

Lines 105 to 106 in 9a21f59

Quick start with CMake
======================

and more details here:

mfem/INSTALL

Lines 858 to 859 in 9a21f59

Building with CMake
===================

from mfem.

Wayne901 avatar Wayne901 commented on September 20, 2024

Thank you Dobrev,

Are the CMake build instructions in INSTALL for building mfem or also for a single .cpp code?

from mfem.

v-dobrev avatar v-dobrev commented on September 20, 2024

The instructions are for building the library (default cmake target, all), the examples (target examples), or all executables (target exec) used for testing (these include the examples, miniapps, and unit tests). You can also build individual targets like ex1 or ex1p -- to see all available targets, you can use make help, I think.

from mfem.

Wayne901 avatar Wayne901 commented on September 20, 2024

I'm clear with it now. Besides this issue helps #1163
Thank you.

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.