Skip to content

Commit

Permalink
Removed obselete code from spncci and lgi libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
aemccoy committed Jan 29, 2021
1 parent 7602135 commit ad3018e
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 6,709 deletions.
159 changes: 0 additions & 159 deletions libraries/lgi/get_lgi_expansion.cpp

This file was deleted.

49 changes: 2 additions & 47 deletions libraries/lgi/lgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace lgi
return ss.str();
}

std::string LGIOutputStr(const MultiplicityTagged<lgi::LGI>& lgi_family)
std::string LGIFamilyStr(const MultiplicityTagged<lgi::LGI>& lgi_family)
{
int Nex;
u3::U3 sigma;
Expand All @@ -85,7 +85,7 @@ namespace lgi
{
std::tie(Nex,sigma,Sp,Sn,S)=lgi_count.irrep.Key();
int count=lgi_count.tag;
os<<LGIOutputStr(lgi_count)<<std::endl;
os<<LGIFamilyStr(lgi_count)<<std::endl;
}
}

Expand All @@ -98,51 +98,6 @@ namespace lgi
os.close();
}

void
WriteLGIExpansionHeader(int Z, int N, int Nmax, std::ostream& os)
{
os<<"# Z N Nmax"<<std::endl;
os<<"# Nex lambda mu 2Sp 2Sn 2S gamma_max"<<std::endl;
os<<fmt::format("{} {} {}", Z, N, Nmax)<<std::endl;
}

void
WriteLGIExpansion(
const lgi::MultiplicityTaggedLGIVector& lgi_families,
const lsu3shell::OperatorBlocks&lgi_expansions,
std::ostream& os
)
{
for(int i=0; i<lgi_families.size(); ++i)
{
const auto& lgi_family=lgi_families[i];
os<<LGIOutputStr(lgi_family)<<std::endl;
os<<mcutils::FormatMatrix(lgi_expansions[i], ".8f")<<std::endl;
}
}


void
WriteLGIExpansion(
int Z, int N, int Nmax,
const lgi::MultiplicityTaggedLGIVector& lgi_families,
lsu3shell::OperatorBlocks&lgi_expansion,
const std::string& filename
)
{
// Open file
std::ofstream os;
os.open(filename);

// Write header
WriteLGIExpansionHeader(Z,N,Nmax,os);

//Write expansions
WriteLGIExpansion(lgi_families,lgi_expansion,os);

os.close();
}


void ReadLGISet(
const std::string& lgi_filename,
Expand Down
13 changes: 3 additions & 10 deletions libraries/lgi/lgi.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
to accept std::ostream for output and extract to lgi.
10/11/17 (aem) : Extract Nsigma0ForNuclide from spncci_basis
1/15/18 (aem) : Updated Read LGI to be consistant with write functions
1/28/21 (aem) : Removed deprecated WriteLGIExpansion function.
****************************************************************/
#ifndef LGI_SOLVER_H_
#define LGI_SOLVER_H_
Expand Down Expand Up @@ -150,22 +151,14 @@ namespace lgi
// STYLE: maybe LGI::vector would be more consistent
typedef MultiplicityTagged<lgi::LGI>::vector MultiplicityTaggedLGIVector;

std::string LGIFamilyStr(const MultiplicityTagged<lgi::LGI>& lgi_family);

void
WriteLGILabels(const lgi::MultiplicityTaggedLGIVector& lgi_families,std::ostream& os);

void
WriteLGILabels(const lgi::MultiplicityTaggedLGIVector& lgi_families, const std::string& filename);


void
WriteLGIExpansion(
int Z, int N, int Nmax,
const lgi::MultiplicityTaggedLGIVector& lgi_families,
lsu3shell::OperatorBlocks&lgi_expansions,
const std::string& filename
);


void
ReadLGISet(
const std::string& lgi_filename,
Expand Down
7 changes: 1 addition & 6 deletions libraries/lgi/lgi_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,7 @@ void WriteLGIExpansionsText(const std::string& filename, const lsu3shell::Operat
int num_rows=lgi_expansion.rows();
int num_cols=lgi_expansion.cols();
expansion_file << num_rows << num_cols<<std::endl;

for(int j=0; j<num_cols; ++j)
for(int i=0; i<num_rows; ++i)
expansion_file<<lgi_expansion(i,j);

expansion_file<<std::endl;
expansion_file<<mcutils::FormatMatrix(lgi_expansion, ".8f")<<std::endl;
}


Expand Down
3 changes: 0 additions & 3 deletions libraries/lgi/lgi_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,5 @@ void ReadLGIExpansion(
// Outputs
// lgi_expansions




}
#endif
15 changes: 0 additions & 15 deletions libraries/sp3rlib/scratch.cpp

This file was deleted.

Loading

0 comments on commit ad3018e

Please sign in to comment.