Skip to content

Commit 96bae66

Browse files
committed
Undebugged portion deleted. Better write again!
1 parent 5982058 commit 96bae66

23 files changed

+23
-654
lines changed

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SUBDIRS = dg ig .
22
bin_PROGRAMS = CCGEN
33
CCGEN_SOURCES = binarycontraction.cc cost.cc equation.cc index.cc main.cc pretensor.cc smartindex.cc tensor.cc tree.cc vectensor.cc \
4-
binarycontraction_impl.cc indexspace.cc spaces.cc smartindexlist.cc block.cc tensor_impl.cc
4+
smartindexlist.cc #block.cc tensor_impl.cc binarycontraction_impl.cc
55
LDADD = dg/libdg.a ig/libig.a -lblas -llapack -L/opt/local/lib -lboost_regex
66
AM_CXXFLAGS=-I$(top_srcdir)

src/binarycontraction.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ void BinaryContraction::determine_target_indices(const vector<shared_ptr<Tensor>
9696
// collecting indices that are not going to be summed...
9797
int counter = 0;
9898
for (auto siter = si_first.begin(); siter != si_first.end(); ++siter, ++counter) {
99-
siter->set_sindex(counter);
10099
if (!siter->target_tensor() || !siter->target_tensor()->in_list(tensors.at(1)->regtensors()) ) // if not contraction indices
101100
target_indices.push_back(*siter);
102101
else
@@ -105,7 +104,6 @@ void BinaryContraction::determine_target_indices(const vector<shared_ptr<Tensor>
105104
list<SmartIndex> si_second = tensors.at(1)->smartindices()->si();
106105
counter = 0;
107106
for (auto siter = si_second.begin(); siter != si_second.end(); ++siter, ++counter) {
108-
siter->set_sindex(counter);
109107
if (!siter->target_tensor() || !siter->target_tensor()->in_list(tensors.at(0)->regtensors()) ) // if not contraction indices
110108
target_indices.push_back(*siter);
111109
else
@@ -147,7 +145,6 @@ void BinaryContraction::determine_target_indices(const vector<shared_ptr<Tensor>
147145
}
148146

149147

150-
target_tensor_->set_rank(target_tensor_->indexinfo()->smartindices()->indexlist().size());
151148
}
152149

153150

src/binarycontraction.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ class BinaryContraction {
1818
void determine_target_indices(const std::vector<std::shared_ptr<Tensor> >&);
1919
void refresh_indices();
2020

21-
// For implementation
22-
std::vector<std::vector<Block> > outerloop_;
23-
std::vector<std::vector<Block> > innerloop1_;
24-
std::vector<std::vector<Block> > innerloop2_;
25-
// Loop indices that reflects which index has come from which tensor etc.
26-
std::shared_ptr<SmartIndexList> loop_indices_;
27-
std::shared_ptr<SmartIndexList> prod_indices_;
28-
std::shared_ptr<SmartIndexList> prod_indices2_;
29-
3021
public:
3122
BinaryContraction(std::vector<std::shared_ptr<Tensor> >&, std::shared_ptr<Tensor>);
3223
BinaryContraction() {};

src/binarycontraction_impl.cc

Lines changed: 0 additions & 168 deletions
This file was deleted.

src/block.cc

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/block.h

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/equation.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
2-
// Author:: Toru Shiozaki
3-
// Date :: Feb 2009
2+
// Author : Toru Shiozaki
3+
// Date : Feb 2009
44
//
55

66
#include <cassert>

src/equation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
2-
// Author:: Toru Shiozaki
3-
// Date :: Feb 2009
2+
// Author : Toru Shiozaki
3+
// Date : Feb 2009
44
//
55
#ifndef _smith_equation_h
66
#define _smith_equation_h

src/index.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
using namespace std;
1515

16-
Index::Index(const string indx, const Spaces& sp) {
16+
Index::Index(const string indx) {
1717

1818
const boost::regex dagger_reg("\\+");
1919
boost::smatch what;
@@ -35,16 +35,6 @@ Index::Index(const string indx, const Spaces& sp) {
3535
throw std::invalid_argument(error_message.str());
3636
}
3737

38-
if (type_ == "h") {
39-
indexspace_ = sp.occ_space();
40-
} else if (type_ == "p") {
41-
indexspace_ = sp.vir_space();
42-
} else {
43-
stringstream error_message; error_message << "index other than holes and particles hasn't been implemented in file: "
44-
<< __FILE__ << " line: " << __LINE__;
45-
throw logic_error(error_message.str());
46-
}
47-
4838
}
4939

5040
Index::~Index() {

0 commit comments

Comments
 (0)