summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgey2017-03-15 11:59:44 +0530
committerGeorgey2017-03-15 11:59:44 +0530
commit074e1265a52f7b1e0cdba8845f62e786fc3848c4 (patch)
treed3c0f22680a77df2214b63edef6d19ec9322813f
parentc4d3c162df7b998a62cce73fb9a74f4fef077171 (diff)
downloadFOSSEE-Optimization-toolbox-074e1265a52f7b1e0cdba8845f62e786fc3848c4.tar.gz
FOSSEE-Optimization-toolbox-074e1265a52f7b1e0cdba8845f62e786fc3848c4.tar.bz2
FOSSEE-Optimization-toolbox-074e1265a52f7b1e0cdba8845f62e786fc3848c4.zip
Removed 'Symphony environment is already initialized message'
-rw-r--r--sci_gateway/cpp/sci_sym_openclose.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sci_gateway/cpp/sci_sym_openclose.cpp b/sci_gateway/cpp/sci_sym_openclose.cpp
index f77a98b..90bfe75 100644
--- a/sci_gateway/cpp/sci_sym_openclose.cpp
+++ b/sci_gateway/cpp/sci_sym_openclose.cpp
@@ -35,9 +35,7 @@ int sci_sym_open(char *fname, unsigned long fname_len){
CheckOutputArgument(pvApiCtx, 1, 1) ;//one output argument
//check environment
- if(global_sym_env!=NULL){
- sciprint("Warning: Symphony environment is already initialized.\n");
- }else{
+ if(global_sym_env==NULL){
global_sym_env = sym_open_environment();//open an environment
if (!global_sym_env)
sciprint("Error: Unable to create symphony environment.\n");