Skip to content

Commit

Permalink
fixed header and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Younes Nejahi committed Jan 20, 2020
1 parent 1fc5772 commit e6915cf
Show file tree
Hide file tree
Showing 187 changed files with 2,146 additions and 2,097 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.50] - 1/20/2020
+ Added support for Exponential-6 forcefield
+ Support for multiple simulation with different temperatures
+ Added support for free energy calculations using TI and FEP methods
+ Support for restarting simulation using checkpoint
+ Added support for new GPU architectures 7.0 and 7.5
+ Added an error message when GPU version was used but there was no GPU present (#126)
+ Read PDB file more efficiently when recalculating trajectory (#131)
+ Fixed detecting simulation box shape (orthogonal and non-orthogonal) (#134)
+ Fixed bugs in PDB reader and support for HETATM field in PDB file
+ Fixed bugs in PSF reader

## [2.40] - 3/15/2019
+ Added support for Cyclic molecules.
+ Added Inter Molecular Exchange Monte Carlo move in GCMC and GEMC simulation.
Expand Down
4 changes: 2 additions & 2 deletions CMake/TestMPI.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <mpi.h>
#include <mpi.h>

int main(int argc, char **argv)
{
MPI_Init(&argc,&argv);
MPI_Init(&argc, &argv);
}
4 changes: 2 additions & 2 deletions CMake/TestWinProcNum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#include <windows.h>
int main()
{
PROCESSOR_NUMBER p;
return 0;
PROCESSOR_NUMBER p;
return 0;
}
2 changes: 1 addition & 1 deletion lib/BasicTypes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.40
GPU OPTIMIZED MONTE CARLO (GOMC) 2.50
Copyright (C) 2018 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/BitLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.40
GPU OPTIMIZED MONTE CARLO (GOMC) 2.50
Copyright (C) 2018 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) 2.40
GPU OPTIMIZED MONTE CARLO (GOMC) 2.50
Copyright (C) 2018 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
115 changes: 58 additions & 57 deletions lib/Lambda.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.40
GPU OPTIMIZED MONTE CARLO (GOMC) 2.50
Copyright (C) 2018 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 @@ -13,7 +13,8 @@ along with this program, also can be found at <http://www.gnu.org/licenses/>.
class Lambda
{
public:
Lambda() {
Lambda()
{
std::fill_n(isFraction, BOX_TOTAL, false);
std::fill_n(lambdaVDW, BOX_TOTAL, 1.0);
std::fill_n(lambdaCoulomb, BOX_TOTAL, 1.0);
Expand All @@ -28,7 +29,7 @@ class Lambda

double GetLambdaVDW(const uint kind, const uint box) const;

double GetLambdaCoulomb(const uint mol,const uint kind, const uint box) const;
double GetLambdaCoulomb(const uint mol, const uint kind, const uint box) const;

double GetLambdaCoulomb(const uint kind, const uint box) const;

Expand All @@ -47,97 +48,97 @@ class Lambda
};

inline void Lambda::Set(const double vdw, const double coulomb, const uint mol,
const uint kind, const uint box)
const uint kind, const uint box)
{
molIndex[box] = mol;
kindIndex[box] = kind;
lambdaVDW[box] = vdw;
lambdaCoulomb[box] = coulomb;
isFraction[box] = true;
molIndex[box] = mol;
kindIndex[box] = kind;
lambdaVDW[box] = vdw;
lambdaCoulomb[box] = coulomb;
isFraction[box] = true;
}

inline void Lambda::UnSet(const uint sourceBox, const uint destBox)
{
isFraction[sourceBox] = isFraction[destBox] = false;
lambdaVDW[sourceBox] = lambdaCoulomb[sourceBox] = 1.0;
lambdaVDW[destBox] = lambdaCoulomb[destBox] = 0.0;
isFraction[sourceBox] = isFraction[destBox] = false;
lambdaVDW[sourceBox] = lambdaCoulomb[sourceBox] = 1.0;
lambdaVDW[destBox] = lambdaCoulomb[destBox] = 0.0;
}

inline double Lambda::GetLambdaVDW(const uint mol, const uint kind,
const uint box) const
const uint box) const
{
double val = 1.0;
if(isFraction[box]) {
if((molIndex[box] == mol) && (kindIndex[box] == kind)) {
val = lambdaVDW[box];
}
double val = 1.0;
if(isFraction[box]) {
if((molIndex[box] == mol) && (kindIndex[box] == kind)) {
val = lambdaVDW[box];
}
return val;
}
return val;
}

inline double Lambda::GetLambdaVDW(const uint kind, const uint box) const
{
double val = 1.0;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
val = lambdaVDW[box];
}
double val = 1.0;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
val = lambdaVDW[box];
}
return val;
}
return val;
}

inline double Lambda::GetLambdaCoulomb(const uint mol, const uint kind,
const uint box) const
const uint box) const
{
double val = 1.0;
if(isFraction[box]) {
if((molIndex[box] == mol) && (kindIndex[box] == kind)) {
val = lambdaCoulomb[box];
}
double val = 1.0;
if(isFraction[box]) {
if((molIndex[box] == mol) && (kindIndex[box] == kind)) {
val = lambdaCoulomb[box];
}
return val;
}
return val;
}

inline double Lambda::GetLambdaCoulomb(const uint kind, const uint box) const
{
double val = 1.0;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
val = lambdaCoulomb[box];
}
double val = 1.0;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
val = lambdaCoulomb[box];
}
return val;
}
return val;
}

inline bool Lambda::KindIsFractional(const uint kind, const uint box) const
inline bool Lambda::KindIsFractional(const uint kind, const uint box) const
{
bool result = false;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
result = true;
}
bool result = false;
if(isFraction[box]) {
if(kindIndex[box] == kind) {
result = true;
}
return result;
}
return result;
}

inline uint Lambda::GetKind(const uint box) const
{
if(isFraction[box]) {
return kindIndex[box];
} else {
std::cout << "Error: Lambda.h, calling GetKind\n";
exit(EXIT_FAILURE);
}
if(isFraction[box]) {
return kindIndex[box];
} else {
std::cout << "Error: Lambda.h, calling GetKind\n";
exit(EXIT_FAILURE);
}
}

inline uint Lambda::GetMolIndex(const uint box) const
{
if(isFraction[box]) {
return molIndex[box];
} else {
std::cout << "Error: Lambda.h, calling GetKind\n";
exit(EXIT_FAILURE);
}
if(isFraction[box]) {
return molIndex[box];
} else {
std::cout << "Error: Lambda.h, calling GetKind\n";
exit(EXIT_FAILURE);
}
}

#endif
Loading

0 comments on commit e6915cf

Please sign in to comment.