From 5dbc9fa8553f94ef9e1821deb10db3ca1eb08906 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 24 Nov 2010 14:28:16 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5299 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_nh.cpp | 7 +++++++ src/fix_nh.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/fix_nh.cpp b/src/fix_nh.cpp index da9e470ec5..f8ee347be2 100644 --- a/src/fix_nh.cpp +++ b/src/fix_nh.cpp @@ -1416,6 +1416,13 @@ double FixNH::compute_vector(int n) /* ---------------------------------------------------------------------- */ +void FixNH::reset_target(double t_new) +{ + t_start = t_stop = t_new; +} + +/* ---------------------------------------------------------------------- */ + void FixNH::reset_dt() { dtv = update->dt; diff --git a/src/fix_nh.h b/src/fix_nh.h index 9ce1ed395f..58d4f6fb06 100644 --- a/src/fix_nh.h +++ b/src/fix_nh.h @@ -34,6 +34,7 @@ class FixNH : public Fix { void write_restart(FILE *); void restart(char *); int modify_param(int, char **); + void reset_target(double); void reset_dt(); protected: