Skip to content

Commit

Permalink
fix for issue 337, setmd sd_radius -1 is now accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jun 15, 2015
1 parent 3de8715 commit 51f7c53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tcl/integrate_sd_tcl.cpp
Expand Up @@ -177,6 +177,14 @@ int tclcallback_sd_radius(Tcl_Interp *interp, void *_data)
{
double data = *(double *)_data;
if (data <= 0) {
if (-1.001 < data && data < -.999){
#if defined(SD) || defined(BD)
Tcl_AppendResult(interp, "SD radius was set to -1. It must be set to a reasonable value bevor the integrate_sd can be called.", (char *) NULL);
#endif
sd_radius=-1;
mpi_bcast_parameter(FIELD_SD_RADIUS);
return (TCL_OK);
}
Tcl_AppendResult(interp, "radius must be > 0.", (char *) NULL);
return (TCL_ERROR);
}
Expand Down

0 comments on commit 51f7c53

Please sign in to comment.