mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Support Octave-4.0.0 on windows.(#325)
The modifications is also working in the old 3.6.1 version of octave, so they should be good in the versions between too.
This commit is contained in:
@@ -95,12 +95,12 @@ DEFUN_DLD (riGetCurrentCase, args, nargout,
|
||||
|
||||
getCurrentCase(caseId, caseName, caseType, caseGroupId, "127.0.0.1", 40001);
|
||||
|
||||
Octave_map fieldMap;
|
||||
octave_map fieldMap;
|
||||
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseId, caseId);
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseName, caseName.toLatin1().data());
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseType, caseType.toLatin1().data());
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseGroupId, caseGroupId);
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseId, Cell(caseId));
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseName, Cell(std::string(caseName.toLatin1().data()), true));
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseType, Cell(std::string(caseType.toLatin1().data()), true));
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseGroupId, Cell(caseGroupId));
|
||||
|
||||
retval = octave_value(fieldMap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user