Running examples and tutorials

27 views
Skip to first unread message

embers...@u.boisestate.edu

unread,
Aug 19, 2016, 3:09:53 PM8/19/16
to moose-users
Good Afternoon, 

What's the best way to go about running the examples that only have the input files? The Tensor Mechanics module for example has the Makefile, include, and src directories; should these be copied into the example subdirectories? Can I just reference them from the Makefile? Do I need to add header files and can these be constructed based on the input files?

Thank you,
Ember 

Cody Permann

unread,
Aug 19, 2016, 3:34:14 PM8/19/16
to moose-users
Don't copy, move or edit anything. Just go to the directory with the input file and run your executable with that input file.

e.g.
Assuming you've built the tensor mechanics executable and are in the tensor mechanics bridge example, do this:
$ ../../tensor_mechanics-opt -i bridge.i
or in parallel
$ mpiexec -n 4 ../../tensor_mechanics-opt -i bridge.i

Cody

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/22f54c09-776d-40e0-8376-feefc03c07c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

embers...@u.boisestate.edu

unread,
Aug 19, 2016, 4:15:25 PM8/19/16
to moose-users
Thanks!
Reply all
Reply to author
Forward
0 new messages