Skip to content

Commit 6b5712e

Browse files
committed
Merge branch 'some_fixes_marked_by_windows_compiler' into 'master'
Some fixes marked by windows compiler See merge request integer/scip!3473
2 parents 84d8e1c + 6b2999a commit 6b5712e

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

applications/Scheduler/src/reader_cmin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
2222
/* */
2323
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24-
#pragma ident "@(#) $Id: reader_cmin.h,v 1.1.1.1 2010/10/08 10:29:59 bzfheinz Exp $"
2524

2625
/**@file reader_cmin.h
2726
* @brief cmin file reader
28-
* @author
27+
* @author Stefan Heinz
2928
*/
3029

3130
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/

src/scip/debug.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,21 @@ SCIP_Bool debugSolutionAvailable(
121121
debugsoldata = SCIPsetGetDebugSolData(set);
122122

123123
/* check whether a debug solution is specified */
124-
if( strcmp(set->misc_debugsol, "-") == 0 )
125-
{
126-
if( !debugsoldata->warningprinted )
127-
{
128-
SCIPmessagePrintWarning(SCIPgetMessagehdlr(set->scip), "SCIP is compiled with 'DEBUGSOL=true' but no debug solution is given:\n ");
129-
SCIPmessagePrintWarning(SCIPgetMessagehdlr(set->scip), "*** Please set the parameter 'misc/debugsol' and reload the problem again to use the debugging-mechanism ***\n\n");
130-
debugsoldata->warningprinted = TRUE;
131-
}
132-
return FALSE;
133-
}
134-
else
135-
{
136-
debugsoldata->warningprinted = FALSE;
137-
return TRUE;
138-
}
124+
if( strcmp(set->misc_debugsol, "-") == 0 )
125+
{
126+
if( !debugsoldata->warningprinted )
127+
{
128+
SCIPmessagePrintWarning(SCIPgetMessagehdlr(set->scip), "SCIP is compiled with 'DEBUGSOL=true' but no debug solution is given:\n");
129+
SCIPmessagePrintWarning(SCIPgetMessagehdlr(set->scip), "*** Please set the parameter 'misc/debugsol' and reload the problem again to use the debugging-mechanism ***\n\n");
130+
debugsoldata->warningprinted = TRUE;
131+
}
132+
return FALSE;
133+
}
134+
else
135+
{
136+
debugsoldata->warningprinted = FALSE;
137+
return TRUE;
138+
}
139139
}
140140

141141
/** reads solution from given file into given arrays */

src/scip/reader_fzn.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4230,7 +4230,7 @@ SCIP_RETCODE printLinearCons(
42304230
return SCIP_OKAY;
42314231
}
42324232

4233-
/* writes problem to a flatzinc conform file, including introduction of several auxiliary variables and constraints */
4233+
/** writes problem to a flatzinc conforming file, including introduction of several auxiliary variables and constraints */
42344234
static
42354235
SCIP_RETCODE writeFzn(
42364236
SCIP* scip, /**< SCIP data structure */
@@ -4338,7 +4338,7 @@ SCIP_RETCODE writeFzn(
43384338
}
43394339
else
43404340
{
4341-
/* Real valued bounds have to be made type conform */
4341+
/* real valued bounds have to be made type conforming */
43424342
if( fixed )
43434343
{
43444344
flattenFloat(scip, lb, buffy);
@@ -4879,7 +4879,7 @@ SCIP_DECL_READERWRITE(readerWriteFzn)
48794879

48804880
legal = TRUE;
48814881

4882-
/* Scan whether all variable names are flatzinc conform */
4882+
/* scan whether all variable names are flatzinc conforming */
48834883
for( i = 0; i < nvars; i++ )
48844884
{
48854885
const char* varname;
@@ -4890,7 +4890,7 @@ SCIP_DECL_READERWRITE(readerWriteFzn)
48904890
legal = isIdentifier(varname);
48914891
if( !legal )
48924892
{
4893-
SCIPwarningMessage(scip, "The name of variable <%d>: \"%s\" is not conform to the fzn standard.\n", i, varname);
4893+
SCIPwarningMessage(scip, "The name of variable <%d>: \"%s\" does not conform to the fzn standard.\n", i, varname);
48944894
break;
48954895
}
48964896

@@ -4903,7 +4903,7 @@ SCIP_DECL_READERWRITE(readerWriteFzn)
49034903
}
49044904
}
49054905

4906-
/* If there is at least one name, which is not conform, use generic names */
4906+
/* if there is at least one name, which does not conform, use generic names */
49074907
if( legal )
49084908
{
49094909
SCIP_CALL( writeFzn(scip, file, name, transformed, objsense, objscale, objoffset, vars,

0 commit comments

Comments
 (0)