Skip to content

Commit 7db4d5f

Browse files
committed
DRR - Change from NO_DTR to ENABLE_DTR; disabled unless configure is used on non-windows platform.
1 parent 1eba41b commit 7db4d5f

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ SetupFinalFlags() {
784784
# Platform-specific directives
785785
if [ "$PLATFORM" = 'windows' ] ; then
786786
echo "Warning: DTR trajectory not supported on windows."
787-
DIRECTIVES="$DIRECTIVES -DNO_DTR"
787+
else
788+
DIRECTIVES="$DIRECTIVES -DENABLE_DTR"
788789
fi
789790
}
790791

src/Traj_DTR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifndef NO_DTR
1+
#ifdef ENABLE_DTR
22
#include "Traj_DTR.h"
33
#include "CpptrajStdio.h"
44
#include "CpptrajFile.h"
@@ -250,4 +250,4 @@ void Traj_DTR::parallelCloseTraj() {
250250

251251
}
252252
#endif
253-
#endif /* NO_DTR */
253+
#endif /* ENABLE_DTR */

src/Traj_DTR.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef INC_TRAJ_DTR_H
22
#define INC_TRAJ_DTR_H
3-
#ifndef NO_DTR
3+
#ifdef ENABLE_DTR
44
#include "TrajectoryIO.h"
55
namespace desres { namespace molfile { class FrameSetReader; } }
66
/// Used to read Desmond DTR trajectory
@@ -42,5 +42,5 @@ class Traj_DTR : public TrajectoryIO {
4242
float* fbuffer_; ///< For reading in coords and velocities
4343
size_t bufsize_; ///< Size of buffer_
4444
};
45-
#endif /* NO_DTR */
45+
#endif /* ENABLE_DTR */
4646
#endif

src/TrajectoryFile.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ const FileTypes::AllocToken TrajectoryFile::TF_AllocArray[] = {
7272
{ "XYZ", 0, Traj_XYZ::WriteHelp, Traj_XYZ::Alloc },
7373
{ "LMOD conflib", 0, 0, Traj_Conflib::Alloc },
7474
{ "Gromacs dump", 0, Traj_GmxDump::WriteHelp, Traj_GmxDump::Alloc },
75-
# ifdef NO_DTR
76-
{ "Desmond DTR", 0, 0, 0 },
77-
# else
75+
# ifdef ENABLE_DTR
7876
{ "Desmond DTR", 0, 0, Traj_DTR::Alloc },
77+
# else
78+
{ "Desmond DTR", 0, 0, 0 },
7979
# endif
8080
{ "Unknown trajectory", 0, 0, 0 }
8181
};

src/vmdplugin/dtrplugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3939
4040
*/
41-
#ifndef NO_DTR
41+
#ifdef ENABLE_DTR
4242
#include "dtrplugin.hxx"
4343

4444
using namespace desres::molfile;
@@ -2378,4 +2378,4 @@ int main(int argc, char *argv[]) {
23782378
return 0;
23792379
}
23802380
#endif
2381-
#endif /* NO_DTR */
2381+
#endif /* ENABLE_DTR */

src/vmdplugin/dtrplugin.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3939
4040
*/
41-
#ifndef NO_DTR
41+
#ifdef ENABLE_DTR
4242
#ifndef MOLFILE_DTRPLUGIN_HXX
4343
#define MOLFILE_DTRPLUGIN_HXX
4444

@@ -340,4 +340,4 @@ namespace desres { namespace molfile {
340340
} }
341341

342342
#endif
343-
#endif /* NO_DTR */
343+
#endif /* ENABLE_DTR */

0 commit comments

Comments
 (0)