Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e30de1

Browse files
committedAug 1, 2024·
Shortcut selections for other cores
1 parent bee8ddd commit 4e30de1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎arch/configure_reader.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,12 @@ def generateCMakeToolChainFile( cmakeToolChainTemplate, output, stanza, optionsD
575575

576576
def projectSpecificOptions( options, stanzaCfg ) :
577577
coreOption = getStringOptionSelection( options.sourceCMakeFile, "WRF_CORE_OPTIONS", "WRF_CORE" )
578-
nestingOption = getStringOptionSelection( options.sourceCMakeFile, "WRF_NESTING_OPTIONS", "WRF_NESTING", 1 )
579-
caseOption = getStringOptionSelection( options.sourceCMakeFile, "WRF_CASE_OPTIONS", "WRF_CASE" )
578+
if coreOption == "ARW" :
579+
nestingOption = getStringOptionSelection( options.sourceCMakeFile, "WRF_NESTING_OPTIONS", "WRF_NESTING", 1 )
580+
caseOption = getStringOptionSelection( options.sourceCMakeFile, "WRF_CASE_OPTIONS", "WRF_CASE" )
581+
else :
582+
nestingOption = "NONE"
583+
caseOption = "NONE"
580584

581585
# These are yes
582586
yesValues = [ "yes", "y", "true", "1" ]

0 commit comments

Comments
 (0)
Please sign in to comment.