Skip to content

Commit

Permalink
Add SPDX short-form identifiers to programs/spncci.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemccoy committed Feb 13, 2021
1 parent 3dfc737 commit 9a01b88
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
4 changes: 3 additions & 1 deletion programs/spncci/get_spncci_dimensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
WARNING: Will not build since requires old version of
lgi::GenerateLGIExpansion with stream arguments.
Anna E. McCoy and Mark A. Caprio
Anna E. McCoy
University of Notre Dame
SPDX-License-Identifier: MIT
2/25/17 (aem): Created.
****************************************************************/
#include <fstream>
Expand Down
4 changes: 3 additions & 1 deletion programs/spncci/make_6j_table_q3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
J J_bar J_bar_bar coeff
...
Anna E. McCoy and Mark A. Caprio
Mark A. Caprio
University of Notre Dame
SPDX-License-Identifier: MIT
7/16/17 (mac): Created.
****************************************************************/

Expand Down
2 changes: 2 additions & 0 deletions programs/spncci/rme2txt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
Anna E. McCoy and Mark A. Caprio
University of Notre Dame
SPDX-License-Identifier: MIT
6/12/17 (mac): Created.
6/23/17 (mac): Update to read rme binary file format v1,
Expand Down
27 changes: 15 additions & 12 deletions programs/spncci/spncci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
Anna E. McCoy and Mark A. Caprio
University of Notre Dame
University of Notre Dame and TRIUMF
SPDX-License-Identifier: MIT
2/20/17 (mac): Created (starting from explicit.cpp).
4/9/17 (aem): Incorporated baby spncci hypersectors
Expand Down Expand Up @@ -551,26 +553,27 @@ int main(int argc, char **argv)
std::cout<<" Constructing Hamiltonian matrix"<<std::endl;

spncci::OperatorBlock hamiltonian_matrix;
std::string filename = fmt::format(
"hamiltonian-hw{:04.1f}-J{:03.1f}",
run_parameters.hw_values.at(hw_index), float(J)
);
std::cout<<"filename is "<<filename<<std::endl;
spncci::ConstructSymmetricOperatorMatrix(
baby_spncci_space,observable_space,
J00,spbasis_bra, spbasis_ket, lgi_pairs,
observable_index,hw_index,hamiltonian_matrix
);


if(false)
{
std::string filename = fmt::format(
"hamiltonian-hw{:04.1f}-J{:03.1f}",
run_parameters.hw_values.at(hw_index), float(J)
);
std::cout<<"filename is "<<filename<<std::endl;

spncci::WriteSymmetricOperatorMatrix(
baby_spncci_space,observable_space,
J00,spbasis_bra, spbasis_ket, lgi_pairs,
observable_index,hw_index,filename
);
}
spncci::ConstructSymmetricOperatorMatrix(
baby_spncci_space,observable_space,
J00,spbasis_bra, spbasis_ket, lgi_pairs,
observable_index,hw_index,hamiltonian_matrix
);


// assert(0);
timer_hamiltonian.Stop();
Expand Down

0 comments on commit 9a01b88

Please sign in to comment.