-
Notifications
You must be signed in to change notification settings - Fork 12
Flatten Aurora code hierarchy #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5b6058b
7ca320b
a9e78e7
37dcd32
01e25d5
5c5a2f4
e79eb1f
0a18a9a
7f76717
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,11 @@ | |
| # MOOSE_DIR - Root directory of the MOOSE project | ||
| # | ||
| ############################################################################### | ||
| AURORA_DIR := $(abspath $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))) | ||
| CONTRIB_DIR := $(AURORA_DIR)/contrib | ||
| MOOSE_SUBMODULE ?= $(CONTRIB_DIR)/moose | ||
|
|
||
| # Use the MOOSE submodule if it exists and MOOSE_DIR is not set | ||
| MOOSE_SUBMODULE := $(CURDIR)/moose | ||
| ifneq ($(wildcard $(MOOSE_SUBMODULE)/framework/Makefile),) | ||
| MOOSE_DIR ?= $(MOOSE_SUBMODULE) | ||
| else | ||
|
|
@@ -26,37 +29,17 @@ include $(FRAMEWORK_DIR)/moose.mk | |
|
|
||
| ALL_MODULES := no | ||
|
|
||
| CHEMICAL_REACTIONS := no | ||
| CONTACT := no | ||
| EXTERNAL_PETSC_SOLVER := no | ||
| FLUID_PROPERTIES := no | ||
| FUNCTIONAL_EXPANSION_TOOLS := no | ||
| HEAT_CONDUCTION := yes | ||
| LEVEL_SET := no | ||
| MISC := yes | ||
| NAVIER_STOKES := no | ||
| PHASE_FIELD := no | ||
| POROUS_FLOW := no | ||
| RDG := no | ||
| RICHARDS := no | ||
| SOLID_MECHANICS := no | ||
| STOCHASTIC_TOOLS := no | ||
| TENSOR_MECHANICS := yes | ||
| XFEM := no | ||
|
Comment on lines
-29
to
-45
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we could leave the extra modules in the makefile? Someone might want to enable them for their own purposes. |
||
|
|
||
| include $(MOOSE_DIR)/modules/modules.mk | ||
| ############################################################################### | ||
|
|
||
| OPENMC_APP_NAME = open_mc | ||
| OPENMC_APP_LIB_NAME = $(OPENMC_APP_NAME)-$(METHOD) | ||
| OPENMC_APP_DIR = $(CURDIR)/openmc | ||
| OPENMC_APP_INC = -I$(OPENMC_APP_DIR)/include | ||
| OPENMC_APP_LIB = -Wl,-rpath,$(OPENMC_APP_DIR)/lib -L$(OPENMC_APP_DIR)/lib -l$(OPENMC_APP_LIB_NAME) | ||
|
|
||
| include $(OPENMC_APP_DIR)/config.inc | ||
| include config.inc | ||
|
|
||
| ADDITIONAL_INCLUDES += $(OPENMC_APP_INC) $(OPENMC_INC) $(MOAB_INC) | ||
| EXTERNAL_FLAGS += $(OPENMC_APP_LIB) $(OPENMC_LIB) $(MOAB_LIB) | ||
| ADDITIONAL_INCLUDES += $(OPENMC_INC) $(MOAB_INC) $(DAGMC_INC) | ||
| EXTERNAL_FLAGS += $(OPENMC_LIB) $(MOAB_LIB) $(DAGMC_LIB) | ||
|
|
||
| # dep apps | ||
| APPLICATION_DIR := $(CURDIR) | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| # | ||
| ############################################################################### | ||
| # Use the MOOSE submodule if it exists and MOOSE_DIR is not set | ||
| MOOSE_SUBMODULE := $(CURDIR)/../moose | ||
| MOOSE_SUBMODULE := $(CURDIR)/../contrib/moose | ||
| ifneq ($(wildcard $(MOOSE_SUBMODULE)/framework/Makefile),) | ||
| MOOSE_DIR ?= $(MOOSE_SUBMODULE) | ||
| else | ||
|
|
@@ -26,21 +26,9 @@ include $(FRAMEWORK_DIR)/moose.mk | |
|
|
||
| ################################## MODULES #################################### | ||
| # set desired physics modules equal to 'yes' to enable them | ||
| CHEMICAL_REACTIONS := no | ||
| CONTACT := no | ||
| FLUID_PROPERTIES := no | ||
| HEAT_CONDUCTION := yes | ||
| MISC := no | ||
| NAVIER_STOKES := no | ||
| PHASE_FIELD := no | ||
| RDG := no | ||
| RICHARDS := no | ||
| SOLID_MECHANICS := no | ||
| STOCHASTIC_TOOLS := no | ||
| MISC := yes | ||
| TENSOR_MECHANICS := yes | ||
| XFEM := no | ||
| POROUS_FLOW := no | ||
| LEVEL_SET := no | ||
|
Comment on lines
-29
to
-43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer to keep these options for now. |
||
| include $(MOOSE_DIR)/modules/modules.mk | ||
| ############################################################################### | ||
|
|
||
|
|
@@ -60,24 +48,10 @@ BUILD_EXEC := yes | |
|
|
||
| DEP_APPS ?= $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME)) | ||
|
|
||
| # Link OpenMC standalone app | ||
| OPENMC_APP_NAME = open_mc | ||
| OPENMC_APP_LIB_NAME = $(OPENMC_APP_NAME)-$(METHOD) | ||
| OPENMC_APP_DIR = $(CURRENT_DIR)/../openmc | ||
| OPENMC_APP_INC = -I$(OPENMC_APP_DIR)/include | ||
| OPENMC_APP_LIB = -Wl,-rpath,$(OPENMC_APP_DIR)/lib -L$(OPENMC_APP_DIR)/lib -l$(OPENMC_APP_LIB_NAME) | ||
| include $(CURRENT_DIR)/../config.inc | ||
|
|
||
|
|
||
| # Link OpenMC App tests | ||
| OPENMC_TEST_DIR = $(OPENMC_APP_DIR)/unit/ | ||
| OPENMC_TEST_INC = -I$(OPENMC_TEST_DIR)/include | ||
| OPENMC_TEST_LIB_NAME = $(OPENMC_APP_NAME)-unit-$(METHOD) | ||
| OPENMC_APP_LIB = -Wl,-rpath,$(OPENMC_TEST_DIR)/lib -L$(OPENMC_TEST_DIR)/lib -l$(OPENMC_TEST_LIB_NAME) | ||
|
|
||
| include $(OPENMC_APP_DIR)/config.inc | ||
|
|
||
| ADDITIONAL_INCLUDES += $(OPENMC_TEST_INC) $(OPENMC_APP_INC) $(OPENMC_INC) $(MOAB_INC) $(HDF5_INC) | ||
| ADDITIONAL_LIBS += $(OPENMC_TEST_LIB) $(OPENMC_APP_LIB) $(OPENMC_LIB) $(MOAB_LIB) | ||
| ADDITIONAL_INCLUDES += $(OPENMC_INC) $(MOAB_INC) $(DAGMC_INC) | ||
| ADDITIONAL_LIBS += $(OPENMC_LIB) $(MOAB_LIB) $(DAGMC_LIB) | ||
|
|
||
| include $(FRAMEWORK_DIR)/app.mk | ||
|
|
||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're not doing the submodule thing I don't think we need these lines?