sl4mcp02.gms : Test matching =G= equations in MCP, with solvelink=4

Description

Run mcp02 with solvelink=%solveLink.callScript%,%solveLink.callModule%,%solveLink.asyncSimulate%,%solveLink.loadLibrary%,%solveLink.threadsSimulate%


Small Model of Type : MCP


Category : GAMS Test library


Main file : sl4mcp02.gms

$title 'Test matching =G= equations in MCP, with solvelink=%solveLink.asyncSimulate%' (SL4MCP02,SEQ=297)

$onText
Run mcp02 with solvelink=%solveLink.callScript%,%solveLink.callModule%,%solveLink.asyncSimulate%,%solveLink.loadLibrary%,%solveLink.threadsSimulate%
$offText

$set XX NT
$if %system.filesys% == UNIX $set XX un
$set q '"'
$if %system.filesys% == UNIX $set q "'"

$call grep -iv scrdir "%gams.scrdir%gmsprm%XX%.%gams.scrext%" | grep -iv scriptnext | grep -iv sysdir | grep -iv JobTrace > "%gams.scrdir%mypf.%gams.scrext%"

$call gams mcp02.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=mcp02.gms reslim=10 solvelink=%solveLink.callScript%
$if errorlevel 1 $abort problems with sl=%solveLink.callScript%

$call gams mcp02.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=mcp02.gms reslim=10 solvelink=%solveLink.callModule%
$if errorlevel 1 $abort problems with sl=%solveLink.callModule%

$call cat "%GAMS.sysdir%gmscmp%XX%.txt" | grep -v "^\*" | awk %q%NF>4 {if ($7>1) print $0 }%q% | grep -vi guss | cut -d" " -f1 | grep -iwq %system.MCP%
$if errorlevel 1 $goTo skipsl5

$call gams mcp02.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=mcp02.gms reslim=10 solvelink=%solveLink.loadLibrary%
$if errorlevel 1 $abort problems with sl=%solveLink.loadLibrary%

$call gams mcp02.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=mcp02.gms solvelink=%solveLink.threadsSimulate% reslim=10
$if errorlevel 1 $abort problems with sl=%solveLink.threadsSimulate%

$label skipsl5
$call gams mcp02.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=mcp02.gms reslim=10 solvelink=%solveLink.asyncSimulate%
$if errorlevel 1 $abort problems with sl=%solveLink.asyncSimulate%