Skip to content

Commit d87186b

Browse files
committed
Merge branch 'gh146-fix-get-depth-use' into 'v92-bugfix'
call SCIPgetDepth() in solving stage only See merge request integer/scip!3848
2 parents 4511ba5 + eb91bcc commit d87186b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scip/cons_nonlinear.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ SCIP_RETCODE createCons(
13611361
conshdlrdata = SCIPconshdlrGetData(conshdlr);
13621362
assert(conshdlrdata != NULL);
13631363

1364-
if( local && SCIPgetDepth(scip) != 0 )
1364+
if( local && SCIPgetStage(scip) == SCIP_STAGE_SOLVING && SCIPgetDepth(scip) != 0 )
13651365
{
13661366
SCIPerrorMessage("Locally valid nonlinear constraints are not supported, yet.\n");
13671367
return SCIP_INVALIDCALL;

0 commit comments

Comments
 (0)