Skip to content

Commit

Permalink
Headers changed to new 2.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Younes Nejahi committed Jun 11, 2017
1 parent 5fc359b commit 0113c83
Show file tree
Hide file tree
Showing 146 changed files with 2,481 additions and 2,434 deletions.
12 changes: 6 additions & 6 deletions lib/BasicTypes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand All @@ -23,7 +23,7 @@ struct XYZ
XYZ() : x(0.0), y(0.0), z(0.0) {}
XYZ(double xVal, double yVal, double zVal) : x(xVal), y(yVal), z(zVal) {}

XYZ& operator=(XYZ const& rhs)
XYZ& operator=(XYZ const& rhs)
{ x = rhs.x; y = rhs.y; z = rhs.z; return *this; }
XYZ& operator+=(XYZ const& rhs)
{ x += rhs.x; y += rhs.y; z += rhs.z; return *this; }
Expand Down Expand Up @@ -53,10 +53,10 @@ struct XYZ
XYZ operator-() const { return XYZ(*this) * -1.0; }

void Inverse()
{
x = 1.0 / x;
y = 1.0 / y;
z = 1.0 / z;
{
x = 1.0 / x;
y = 1.0 / y;
z = 1.0 / z;
}

double Length() const { return sqrt(LengthSq()); }
Expand Down
2 changes: 1 addition & 1 deletion lib/BitLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion lib/GeomLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion lib/NumLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion lib/StrLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion lib/StrStrmLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion lib/VectorLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
6 changes: 3 additions & 3 deletions src/BlockOutput.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand All @@ -19,7 +19,7 @@ along with this program, also can be found at <http://www.gnu.org/licenses/>.

void BlockAverage::Init(std::ofstream* file0,
std::ofstream* file1,
const bool en,
const bool en,
const double scale,
std::string const& var,
const uint bTot)
Expand Down Expand Up @@ -202,7 +202,7 @@ void BlockAverages::InitWatchMulti(config_setup::TrackedVars const& tracked)
name = out::MOL_FRACTION + "_" + trimKindName;
blocks[bkStart + out::MOL_FRACTION_IDX*var->numKinds].Init
(&outBlock0, &outBlock1, tracked.molNum.block, invSteps, name, BOXES_WITH_U_NB);
}
}
for (uint b = 0; b < BOXES_WITH_U_NB; ++b)
{
uint kArrIdx = b*var->numKinds+k;
Expand Down
8 changes: 4 additions & 4 deletions src/BlockOutput.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down Expand Up @@ -45,8 +45,8 @@ struct BlockAverage
}
//Initializes name, and enable
void Init(std::ofstream *file0,
std::ofstream *file1,
const bool en,
std::ofstream *file1,
const bool en,
const double scl,
std::string const& var,
const uint bTot = BOX_TOTAL);
Expand Down Expand Up @@ -79,7 +79,7 @@ struct BlockAverage
}
void DoWrite(const ulong step);
void printTitle(std::string output, uint boxes);

std::ofstream* outBlock0;
std::ofstream* outBlock1;
bool first;
Expand Down
2 changes: 1 addition & 1 deletion src/BoxDimensions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
8 changes: 4 additions & 4 deletions src/BoxDimensions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down Expand Up @@ -183,7 +183,7 @@ inline BoxDimensions& BoxDimensions::operator=(BoxDimensions const& other)
rCut = other.rCut;
rCutSq = other.rCutSq;
constArea = other.constArea;

return *this;
}

Expand Down Expand Up @@ -220,14 +220,14 @@ inline void BoxDimensions::SetVolume(const uint b, const double vol)
double z_x = axis.z[b] / axis.x[b];
double y_x = axis.y[b] / axis.x[b];
double newAxX_b = pow(vol / (z_x * y_x), (1.0/3.0));
XYZ newAx_b(newAxX_b, y_x * newAxX_b, newAxX_b * z_x);
XYZ newAx_b(newAxX_b, y_x * newAxX_b, newAxX_b * z_x);
axis.Set(b, newAx_b);
newAx_b *= 0.5;
halfAx.Set(b, newAx_b);
}
volume[b] = vol;
volInv[b] = 1.0/vol;

}

inline XYZ BoxDimensions::MinImage(XYZ rawVec, const uint b) const
Expand Down
4 changes: 2 additions & 2 deletions src/CBMC.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down Expand Up @@ -42,4 +42,4 @@ CBMC* MakeCBMC(System& sys, const Forcefield& ff,
}
}

}
}
2 changes: 1 addition & 1 deletion src/CBMC.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion src/COM.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion src/CPUSide.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
2 changes: 1 addition & 1 deletion src/CPUSide.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.9
GPU OPTIMIZED MONTE CARLO (GOMC) 2.0
Copyright (C) 2016 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
Expand Down
Loading

0 comments on commit 0113c83

Please sign in to comment.