Skip to content

Commit

Permalink
left/right interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcello-Sega committed Oct 6, 2015
1 parent 29c8db3 commit 95c3db4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if (NOT MYGMX_SRC OR NOT MYGMX_BUILD)
MESSAGE(FATAL_ERROR "MISSING MYGMX_SRC or MYGMX_BUILD options to specify the path of the gromacs source base directory (e.g. ~/gromacs-5.0/) and build directory (e.g. ~/gromacs-5.0/build/) . Pass them to cmake with -DMYGMX_SRC=..., etc. Note that if you compiled gromacs in the source directory, the two variable should point to the same directory.)")
ENDIF(NOT MYGMX_SRC OR NOT MYGMX_BUILD)

IF(GITIM_LR)
ADD_DEFINITIONS(-DGITIM_LR)
MESSAGE(STATUS "Switching on suport for left/right interface (through the environment variables GITIM_LEFT and GITIM_RIGHT)" )
ENDIF(GITIM_LR)

IF(${UNIX})
ADD_DEFINITIONS(-DUNIX)
ENDIF(${UNIX})
Expand Down
4 changes: 4 additions & 0 deletions gmx_density.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2850,6 +2850,10 @@ This is too cluttered. Reorganize the code...
p4[2]=(((real)rand()/RAND_MAX)-0.5)*itim->box[2];
}
}
#ifdef GITIM_LR
if(NULL!=getenv("GITIM_LEFT") && p4[2]>0 ) continue;
if(NULL!=getenv("GITIM_RIGHT") && p4[2]<0 ) continue;
#endif
switch(itim->geometry){
case SURFACE_PLANE: if(fabs(p4[2])>size) continue; break;
default: exit(printf("No such a geometry (%d)\n",itim->geometry));
Expand Down

0 comments on commit 95c3db4

Please sign in to comment.