gdxdiff2.gms : Test GDXDIFFs fldonly option

Description

GDXDIFF should ignore the options field and fldonly for parameters.

Contributor: Lutz Westermann, June 2022


Small Model of Type : GAMS


Category : GAMS Test library


Main file : gdxdiff2.gms

$title 'Test GDXDIFFs fldonly option' (GDXDIFF2,SEQ=908)

$ontext
GDXDIFF should ignore the options field and fldonly for parameters.

Contributor: Lutz Westermann, June 2022
$offtext

$onEcho > createWant.gms
Parameter x(*,*) Differences /
  '1'.'dif1' 1, 
  '1'.'dif2' 2 /;

Set FilesCompared(*) /
  'File1' 1.gdx, 
  'File2' 2.gdx /;
$offEcho

Parameter x / 1 1, 2 2 /;
Variable y(*) / 1.L 1, 2.UP 2 /;
$gdxUnload 1.gdx x y
$onMultiR
Parameter x / 1 2, 2 2 /;
Variable y(*) / 1.L 2, 2.UP 2 /;
$gdxUnload 2.gdx x y

$call gdxdiff 1.gdx 2.gdx got.gdx field=up fldonly > %system.nullfile%
$call.checkErrorLevel gams createWant.gms gdx=want lo=%GAMS.lo%
$call.checkErrorLevel gdxdiff got.gdx want.gdx > %system.nullfile%