From 7306c5c8ade62bc2676bcdf315f93d9367c90afd Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Mon, 9 Nov 2015 14:10:44 +0000 Subject: [PATCH] onelab : add vNek native client (It would be nice to do that without changing the gmsh source code, maybe through a onelab command ?) --- Common/OpenFile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index 8a1ab8940d..ea7365470c 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -443,6 +443,14 @@ int MergeFile(const std::string &fileName, bool warnIfMissing, bool setWindowTit CTX::instance()->solverToRun = num; // used in ONELAB2 return 1; } + else if(ext == ".vnek" || ext == ".VNEK"){ + int num = defineSolver("vNek.exe"); + GModel::current()->setName(split[1] + ".vnek"); + GModel::current()->setFileName(split[0] + split[1] + ".vnek"); + CTX::instance()->launchSolverAtStartup = num; + CTX::instance()->solverToRun = num; // used in ONELAB2 + return 1; + } else if(ext == ".py" || ext == ".PY" || ext == ".m" || ext == ".M" || ext == ".exe" || ext == ".EXE"){ -- GitLab