Skip to content

Commit 4f7ac67

Browse files
author
andy
committed
Merge branch 'main' into wip/backport-transport
2 parents 0097557 + 59d4037 commit 4f7ac67

11 files changed

Lines changed: 1514 additions & 6 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,10 +1693,10 @@ if(PYTHON3_EXECUTABLE)
16931693
ecceutil ${XercesC_LIBRARIES})
16941694
endif()
16951695

1696-
# tests/launch -- submit one real MOPAC job on localhost/Shell through
1697-
# the real Launch class and assert it reaches "completed" (#107 A).
1698-
# launchjob is a test driver and is not installed. The suite SKIPs
1699-
# (exit 77) when MOPAC, csh or the data-server prerequisites are absent.
1696+
# tests/launch -- submit real jobs on localhost/Shell through the real
1697+
# Launch class and assert they reach "completed". launchjob is a test
1698+
# driver and is not installed. The suites SKIP (77) when a prerequisite
1699+
# is absent.
17001700
add_executable(launchjob tests/launch/launchjob.C)
17011701
target_include_directories(launchjob PRIVATE ${XercesC_INCLUDE_DIRS})
17021702
target_link_libraries(launchjob PRIVATE
@@ -1708,4 +1708,13 @@ if(PYTHON3_EXECUTABLE)
17081708
--build ${CMAKE_BINARY_DIR}
17091709
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests/launch)
17101710
set_tests_properties(launch PROPERTIES TIMEOUT 900 SKIP_RETURN_CODE 77)
1711+
1712+
# tests/teaching -- introductory chemistry teaching calculations run end
1713+
# to end through Launch, with NWChem, and checked against known answers.
1714+
add_test(NAME teaching
1715+
COMMAND ${PYTHON3_EXECUTABLE}
1716+
${CMAKE_CURRENT_SOURCE_DIR}/tests/teaching/run_tests.py
1717+
--build ${CMAKE_BINARY_DIR} --jobs 4
1718+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests/teaching)
1719+
set_tests_properties(teaching PROPERTIES TIMEOUT 7200 SKIP_RETURN_CODE 77)
17111720
endif()

‎scripts/parsers/ai.nwchem‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,9 @@ sub DispersionCorrection {
19521952
&& $dispersionModel{$choice} ne "") {
19531953
$result = "disp " . $dispersionModel{$choice};
19541954
}
1955+
# The engine keeps the template line unless $_ is set, as the other
1956+
# resolvers do; without it "##DispersionCorrection##" stayed in the deck.
1957+
$_ = $result;
19551958
return $result;
19561959
}
19571960

‎src/apps/calced/CalcEd.C‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ const char* CalcEd::p_BASIS_QUICK_PICKS[] = {
121121
"DZVP (DFT Orbital)", "DZVP2 (DFT Orbital)", "TZVP (DFT Orbital)" // len(3)
122122
}; // len(18)
123123

124+
// Both the menu and its event range follow the list, so an entry added to it
125+
// can't be left out of one of them (TZVP was, with a hardcoded 17).
126+
#define BASIS_QUICK_COUNT \
127+
((int)(sizeof(p_BASIS_QUICK_PICKS) / sizeof(p_BASIS_QUICK_PICKS[0])))
128+
124129

125130
CalcEd::CalcEd( )
126131
: CalcEdGUI(),
@@ -1037,7 +1042,7 @@ void CalcEd::OnCheckboxCalcedIrreducibleClick( wxCommandEvent& event )
10371042
void CalcEd::OnButtonCalcedBasisQuickClick( wxCommandEvent& event )
10381043
{
10391044
wxMenu menu;
1040-
for (int i = 0; i < 17; i++) {
1045+
for (int i = 0; i < BASIS_QUICK_COUNT; i++) {
10411046
if (strcmp(p_BASIS_QUICK_PICKS[i], "-") == 0) {
10421047
menu.AppendSeparator();
10431048
} else {
@@ -1668,7 +1673,7 @@ void CalcEd::CreateControls()
16681673
replaceBuilderButton();
16691674
replaceBasisSetButton();
16701675

1671-
Connect( 100000, 100016, wxEVT_COMMAND_MENU_SELECTED,
1676+
Connect( 100000, 100000 + BASIS_QUICK_COUNT - 1, wxEVT_COMMAND_MENU_SELECTED,
16721677
wxCommandEventHandler( CalcEd::OnMenuCalcedBasisSetSelected ) );
16731678
}
16741679

0 commit comments

Comments
 (0)