Giter Site home page Giter Site logo

Comments (7)

benkirk avatar benkirk commented on May 28, 2024

On Dec 21, 2012, at 10:48 AM, jwpeterson [email protected] wrote:

In my build directory, if I type make run in reduced_basis_ex1, everything is happy, but if I do that in ex2 or ex3, I currently get:

LIBMESH_DIR=/Users/petejw/projects/libmesh_git/build/.. METHODS="opt dbg" ../../../../examples/reduced_basis/reduced_basis_ex2/
/bin/sh: ../../../../examples/reduced_basis/reduced_basis_ex2/: is a directory
make: *** [run] Error 126

ex4-7 also seem OK.

It is because of this in Makefile.am:

conditionally enable this test

if LIBMESH_ENABLE_SLEPC
if LIBMESH_ENABLE_GLPK
check_SCRIPTS = run.sh
endif
endif

The test is skipped when doing 'make check' (please verify!) but our compatibility 'make run' method is not being smart enough. Perhaps 'make run' should instead just to a 'make check'? Hmm….

-Ben

from libmesh.

jwpeterson avatar jwpeterson commented on May 28, 2024

On Fri, Dec 21, 2012 at 9:52 AM, Benjamin S. Kirk
[email protected]:

On Dec 21, 2012, at 10:48 AM, jwpeterson [email protected]
wrote:

In my build directory, if I type make run in reduced_basis_ex1,
everything is happy, but if I do that in ex2 or ex3, I currently get:

LIBMESH_DIR=/Users/petejw/projects/libmesh_git/build/.. METHODS="opt
dbg" ../../../../examples/reduced_basis/reduced_basis_ex2/
/bin/sh: ../../../../examples/reduced_basis/reduced_basis_ex2/: is a
directory
make: *** [run] Error 126

ex4-7 also seem OK.

It is because of this in Makefile.am:

conditionally enable this test

if LIBMESH_ENABLE_SLEPC
if LIBMESH_ENABLE_GLPK
check_SCRIPTS = run.sh
endif
endif

The test is skipped when doing 'make check' (please verify!) but our
compatibility 'make run' method is not being smart enough. Perhaps 'make
run' should instead just to a 'make check'? Hmm….

Ah, I see. Yeah I don't have SLEPC so that makes sense... still figuring
out this automake stuff.

John

from libmesh.

pbauman avatar pbauman commented on May 28, 2024

Since we're using the parallel-tests bits of automake, I wonder if it would be better to put #ifdef's in the test and if, in this case, SLEPc or GLPK are not available, the test just returns 77 (http://ansuz.sooke.bc.ca/entry/233). The test will be reported as skipped and then we just have the test always run.

from libmesh.

benkirk avatar benkirk commented on May 28, 2024

On Dec 21, 2012, at 10:59 AM, jwpeterson [email protected] wrote:

Ah, I see. Yeah I don't have SLEPC so that makes sense... still figuring
out this automake stuff.

No problem. The general approach we're taking with the examples is that 'make check' will always compile the source, even if the example dependencies are not satisfied, mostly to give us more API coverage. This is accomplished by setting the check_PROGRAMS target, and that is always built.

As implemented, TESTS itself is only set when the prerequisites are satisfied…

As @pbauman just mentioned, though, we could always run the test too, and change e.g.

  libmesh_example_assert(false, "--enable-slepc --enable-glpk");

such that libmesh_example_assert() return's with code 77 - that'll make the test print "SKIPPED", which I guess is precisely what we're doing…. ;-P

-Ben

from libmesh.

benkirk avatar benkirk commented on May 28, 2024

BTW @jwpeterson - did you have your gravatar commissioned? You're one Eddie-Bauer-looing mthrfkr...

from libmesh.

jwpeterson avatar jwpeterson commented on May 28, 2024

On Fri, Dec 21, 2012 at 10:10 AM, Benjamin S. Kirk <[email protected]

wrote:

BTW @jwpeterson https://github.com/jwpeterson - did you have your
gravatar commissioned? You're one Eddie-Bauer-looing mthrfkr...

Heh, I wish I still looked like that... it's from years ago and before
kids. A current pic would have dark circles under eyes, wrinkles, grey
hair, etc.

John

from libmesh.

benkirk avatar benkirk commented on May 28, 2024

On Dec 21, 2012, at 11:12 AM, jwpeterson [email protected] wrote:

Heh, I wish I still looked like that... it's from years ago and before
kids. A current pic would have dark circles under eyes, wrinkles, grey
hair, etc.

Yeah, my developer photo is a little disingenuous at this point:
http://libmesh.sourceforge.net/developers.php

also, as @roystgnr is no longer a student, I guess it's time to update that page!

from libmesh.

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.