Difference between revisions of "MOOSE Configuration"

From UFRC
Jump to navigation Jump to search
Line 21: Line 21:
 
## make -j 4
 
## make -j 4
 
##./run_tests -j 4
 
##./run_tests -j 4
=== Patch File ===
+
=== Patch File (configure.patch) ===
 
<source lang=bash>
 
<source lang=bash>
 
======================================configure.patch==========================================================
 
======================================configure.patch==========================================================

Revision as of 14:51, 13 August 2020

Configure and test your own "MOOSE" framework

Basic Steps

  1. mkdir projects
  2. cd projects
  3. module load moose/12-aug-20
  4. git clone https://github.com/idaholab/moose.git
  5. cd moose
  6. git checkout master
  7. export VTKLIB_DIR=${HPC_VTK_LIB} VTKINCLUDE_DIR=${HPC_VTK_INC}
  8. Run "./scripts/update_and_rebuild_libmesh.sh --enable-vtk-required"
  9. Interrupt (ctrl-c) the above configure/build just after the git clone of libmesh is completed.
  10. Patch the "configure" script using the accompanying patch file (see below).
  11. Rerun "./scripts/update_and_rebuild_libmesh.sh --enable-vtk-required" and allow it to complete. It should finish without errors.
  12. cd test; run_tests -j 4
  13. Build and test the "phase field" module:
    1. cd moose/modules/phase_field
    2. make -j 4
    3. ./run_tests -j 4
  14. Build and test the "combined" module:
    1. cd moose/modules/combined
    2. make -j 4
    3. ./run_tests -j 4

Patch File (configure.patch)

======================================configure.patch==========================================================
--- a/configure	2020-08-07 07:56:18.955696774 -0400
+++ b/configure	2020-08-07 08:00:45.329361095 -0400
@@ -38452,24 +38452,26 @@
                  VTK_LIBRARY_WITH_VERSION="-L$VTK_LIB -lvtkIOCore-$vtkmajorminor -lvtkCommonCore-$vtkmajorminor -lvtkCommonDataModel-$vtkmajorminor \
                                            -lvtkFiltersCore-$vtkmajorminor -lvtkIOXML-$vtkmajorminor -lvtkImagingCore-$vtkmajorminor \
                                            -lvtkIOImage-$vtkmajorminor -lvtkImagingMath-$vtkmajorminor \
-                                           -lvtkParallelMPI-$vtkmajorminor -lvtkParallelCore-$vtkmajorminor"
+                                           -lvtkParallelMPI-$vtkmajorminor -lvtkParallelCore-$vtkmajorminor \
+                                           -lvtkCommonExecutionModel-$vtkmajorminor"
 
                                                                     VTK_LIBRARY_NO_VERSION="-L$VTK_LIB -lvtkIOCore -lvtkCommonCore -lvtkCommonDataModel \
                                          -lvtkFiltersCore -lvtkIOXML -lvtkImagingCore \
                                          -lvtkIOImage -lvtkImagingMath \
-                                         -lvtkParallelMPI -lvtkParallelCore"
+                                         -lvtkParallelMPI -lvtkParallelCore -lvtkCommonExecutionModel"
 
 else
 
                                                    VTK_LIBRARY_WITH_VERSION="-L$VTK_LIB -lvtkIOCore-$vtkmajorminor -lvtkCommonCore-$vtkmajorminor -lvtkCommonDataModel-$vtkmajorminor \
                                            -lvtkFiltersCore-$vtkmajorminor -lvtkIOXML-$vtkmajorminor -lvtkImagingCore-$vtkmajorminor \
                                            -lvtkIOImage-$vtkmajorminor -lvtkImagingMath-$vtkmajorminor -lvtkIOParallelXML-$vtkmajorminor \
-                                           -lvtkParallelMPI-$vtkmajorminor -lvtkParallelCore-$vtkmajorminor"
+                                           -lvtkParallelMPI-$vtkmajorminor -lvtkParallelCore-$vtkmajorminor \
+                                           -lvtkCommonExecutionModel-$vtkmajorminor"
 
                                                                     VTK_LIBRARY_NO_VERSION="-L$VTK_LIB -lvtkIOCore -lvtkCommonCore -lvtkCommonDataModel \
                                          -lvtkFiltersCore -lvtkIOXML -lvtkImagingCore \
                                          -lvtkIOImage -lvtkImagingMath -lvtkIOParallelXML \
-                                         -lvtkParallelMPI -lvtkParallelCore"
+                                         -lvtkParallelMPI -lvtkParallelCore -lvtkCommonExecutionModel"
 
 fi
======================================================================================================