summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-07-01 16:39:34 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-07-01 16:39:34 +0200
commit4d8dc4477942d196a304e71db4918ac71862e597 (patch)
tree53d660ff9ed75fb6ca0acde84767b58ca75fb3e1 /src
parent0a4ece477416422f9d007bbd7eb4c1322d723fcb (diff)
Code review: no need to check 'where homsimpl'
Diffstat (limited to 'src')
-rw-r--r--src/GudhUI/model/Model.h8
1 files changed, 3 insertions, 5 deletions
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() {