From 4d8dc4477942d196a304e71db4918ac71862e597 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Mon, 1 Jul 2019 16:39:34 +0200 Subject: Code review: no need to check 'where homsimpl' --- src/GudhUI/model/Model.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/GudhUI/model/Model.h b/src/GudhUI/model/Model.h index e820a46e..dd9bdaab 100644 --- a/src/GudhUI/model/Model.h +++ b/src/GudhUI/model/Model.h @@ -310,13 +310,11 @@ class Model { void run_chomp() { save_complex_in_file_for_chomp(); std::cout << "Call CHOMP library\n"; - int returnValue = system("which homsimpl"); + int returnValue = system("homsimpl chomp.sim"); if (returnValue != 0) { - std::cout << "CHOMP must be installed and available in PATH for this functionnality." << std::endl; - return; + std::cout << "homsimpl (from CHOMP) failed. Please check it is installed or available in the PATH." + << std::endl; } - returnValue = system("homsimpl chomp.sim"); - std::cout << "CHOMP returns " << returnValue << std::endl; } void save_complex_in_file_for_chomp() { -- cgit v1.2.3