forked from m-a-d-n-e-s-s/madness
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create testing for development of coordinator
- Loading branch information
Showing
121 changed files
with
108 additions
and
1,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# src/apps/molresponse/testing | ||
|
||
|
||
set(MY_EXECUTABLES | ||
mad-freq2 | ||
) | ||
|
||
|
||
foreach (EXECUTABLE ${MY_EXECUTABLES}) | ||
add_mad_executable(${EXECUTABLE} "${EXECUTABLE}.cpp" "MADall_response;MADchem;") | ||
target_compile_features(${EXECUTABLE} PRIVATE cxx_std_17) | ||
endforeach () | ||
|
||
|
||
# For testing script add MADGtest library | ||
|
||
|
||
|
||
# The list of unit test source files | ||
set(RESPONSE_TEST_SOURCES test_coordinator | ||
) | ||
|
||
foreach (EXECUTABLE ${RESPONSE_TEST_SOURCES}) | ||
add_mad_executable(${EXECUTABLE} "${EXECUTABLE}.cpp" "MADall_response;MADchem") | ||
target_compile_features(${EXECUTABLE} PRIVATE cxx_std_17) | ||
endforeach () | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
75 changes: 75 additions & 0 deletions
75
src/apps/molresponse/response_coordinator2/test_coordinator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// | ||
// Created by adrianhurtado on 1/1/22. | ||
// | ||
#define CATCH_CONFIG_RUNNER | ||
|
||
#include "ExcitedResponse.hpp" | ||
#include "FrequencyResponse.hpp" | ||
#include "ResponseExceptions.hpp" | ||
#include "coordinator.hpp" | ||
#include "madness/external/catch/catch.hpp" | ||
#include "madness/tensor/tensor_json.hpp" | ||
#include "response_functions.h" | ||
#include "string" | ||
#include "x_space.h" | ||
|
||
|
||
using path = std::filesystem::path; | ||
|
||
int main(int argc, char *argv[]) { | ||
World &world = madness::initialize(argc, argv); | ||
int result = 0; | ||
world.gop.fence(); | ||
startup(world, argc, argv); | ||
{ result = Catch::Session().run(argc, argv); } | ||
|
||
return result; | ||
|
||
// print_meminfo(world.rank(), "startup"); | ||
// std::cout.precision(6); | ||
// print_stats(world); | ||
} | ||
|
||
TEST_CASE("Hash Generation Test") { | ||
// Set up the run directories | ||
using namespace madness; | ||
|
||
World &world = World::get_default(); | ||
std::cout.precision(6); | ||
|
||
// step 1 is to read molecule from molecule file or | ||
// to read in the molecule directory from geometry input | ||
Molecule molecule = Molecule(); | ||
molecule.read(world, "molecule.in"); | ||
|
||
std::string filename = "response.in"; | ||
|
||
commandlineparser parser(argc, argv); | ||
|
||
if (parser.key_exists("help")) { | ||
FrequencyResponse::help(); | ||
} else if (parser.key_exists("print_parameters")) { | ||
FrequencyResponse::print_parameters(); | ||
} else { | ||
molresponse::start_timer(world); | ||
|
||
} | ||
|
||
|
||
|
||
const std::string molecule_name{argv[1]}; | ||
const std::string xc{argv[2]}; | ||
const std::string op{argv[3]}; | ||
const std::string precision{argv[4]}; | ||
const std::string static_calc{argv[5]}; | ||
if (precision != "high" && precision != "low" && precision != "super") { | ||
if (world.rank() == 0) { std::cout << "Set precision to low high super" << std::endl; } | ||
return 1; | ||
} | ||
auto schema = runSchema(world, xc); | ||
|
||
// read in | ||
|
||
|
||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 0 additions & 26 deletions
26
src/apps/molresponse/response_coordinator_v2/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
src/apps/molresponse/response_coordinator_v2/excited_state_calc.cpp
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
src/apps/molresponse/response_coordinator_v2/frequency_calc.cpp
This file was deleted.
Oops, something went wrong.
94 changes: 0 additions & 94 deletions
94
src/apps/molresponse/response_coordinator_v2/full_excited_test.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.