#include #include #include #include #include #define CHECKPOINT_NAME "remd_checkpoint" int main (int argc, char* argv[]) { struct timeval startTime, endTime; double atime; gettimeofday(&startTime, NULL); // Init Migol/Monitoring // uses per default Application Information Service (AIS) configured in // the $SAGA_LOCATON/share/saga/saga_adaptor_migol_cpr.ini // required for all subsequent CPR calls (otherwise exception is thrown) saga::cpr::service js; //look for restart files //Checkpoint Registration saga::url url(CHECKPOINT_NAME); saga::cpr::checkpoint chkpt(url); chkpt.add_file(saga::url("gsiftp://~/remd/chkpt_it1.dat")); chkpt.add_file(saga::url("gsiftp://~/remd/chkpt_it2.dat")); std::vector files; files = chkpt.list_files(); std::cout << "Received files: " <0){ sleeptime=input; } } //std::cout<<"go to sleep for " << sleeptime <<" s"<