Skip to content

Commit

Permalink
switched puts to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Sandberg committed Dec 10, 2024
1 parent c4a1177 commit a534ebb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TCL/polarDensity_for_DTA.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,9 @@ proc polarDensityBin { config_file_script } {
;# a questionable life choice.
set divisibility_test [expr [expr int([expr $params(Rmax) * 10000])] % [expr int([expr $params(dr) * 10000])]]
if {$divisibility_test != 0} {
puts "Rmax must be evenly divisible by dr."
puts "Exiting polarDensityBin early."
return
error "Rmax must be evenly divisible by dr."
}

if {$params(use_qwrap) == 1} {load $params(utils)/qwrap.so}
set backbone_selstr $params(backbone_selstr) ;#only necessary for backwards compatibility
set protein_selstr $params(protein_selstr) ;#only necessary for backwards compatibility
Expand Down

0 comments on commit a534ebb

Please sign in to comment.