Skip to content

Commit

Permalink
Clear the active bc vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Jul 1, 2024
1 parent bd8a705 commit a3ac64f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/molresponse/FrequencyResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ void QuadraticResponse::iterate(World &world) {}
void QuadraticResponse::initialize(World &world) {}


const int &hello;

// To compute 2nd order we need rhs of xx,yy,zz and yz only.
auto QuadraticResponse::setup_XBC(World &world, const double &omega_b, const double &omega_c) -> std::pair<X_space, X_space>
{
Expand Down Expand Up @@ -566,9 +568,10 @@ auto QuadraticResponse::setup_XBC(World &world, const double &omega_b, const dou
new_C.x[i] = copy(world, C.x[index_C[i]]);
new_C.y[i] = copy(world, C.y[index_C[i]]);
}
this->bc_directions.clear();
for (int i = 0; i < num_states; i++)
{
auto bc_direction_i =std::string(xyz[index_B[i]]+xyz[index_C[i]]);
auto bc_direction_i = std::string(xyz[index_B[i]] + xyz[index_C[i]]);
this->bc_directions.push_back(bc_direction_i);
}
if (world.rank() == 0)
Expand Down
1 change: 1 addition & 0 deletions src/apps/molresponse/maddft/response_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ class ParameterManager
* @param world : madness world
* @param input_file : path to the input file
*/

void read_chem_params_and_write_json(World &world, const path &input_file)
{
parser.set_keyval("input", input_file.string());
Expand Down

0 comments on commit a3ac64f

Please sign in to comment.