From b72cfde31017fecdddd3f5393d0a51661c738e31 Mon Sep 17 00:00:00 2001 From: Adrian Hurtado Date: Sun, 16 Jul 2023 20:33:12 -0400 Subject: [PATCH] add flags to run quadratic response --- src/apps/molresponse/response_parameters.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/molresponse/response_parameters.h b/src/apps/molresponse/response_parameters.h index 07c1e0a4fed..bfee57cb632 100644 --- a/src/apps/molresponse/response_parameters.h +++ b/src/apps/molresponse/response_parameters.h @@ -77,7 +77,10 @@ namespace madness { initialize("calc_type", "full", "full,static,tda"); initialize("excited_state", false, "Flag to turn on excited state calc"); initialize("first_order", false, "Flag to turn on first order response calc"); + initialize("second_order", false, "Flag to turn on first order response calc"); initialize("dipole", false, "Sets RHS to dipole operator 3 x num_orbitals"); + initialize("quadratic", false, "Compute quadratic response"); + initialize>("freq_range", {0.0}, "Frequency range for quadratic response"); initialize("nuclear", false, "Sets RHS to nuclear derivative 3 x num_atoms x num_orbitals"); initialize("omega", 0.0, "Incident energy for dynamic response"); initialize("l", 20, "user coordinates box size"); @@ -112,8 +115,8 @@ namespace madness { int k() const { return get("k"); } bool random() const { return get("random"); } bool store_potential() const { return get("store_potential"); } - - + vector freq_range() const { return get>("freq_range"); } + bool quadratic() const { return get("quadratic"); } bool plot_initial() const { return get("plot_initial"); } bool restart() const { return get("restart"); } std::string restart_file() const { return get("restart_file"); }