Changeset 4659


Ignore:
Timestamp:
Nov 7, 2014, 3:33:23 AM (5 years ago)
Author:
ldelgass
Message:

Add check for grid with swapped min/max

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r4526 r4659  
    15121512        set dim 0
    15131513        foreach axis {x y z} {
    1514             foreach {min max} [$mesh limits $axis] { 
     1514            foreach {min max} [$mesh limits $axis] {
    15151515                if { $min < $max } {
    15161516                    incr dim
  • trunk/gui/scripts/mesh.tcl

    r4639 r4659  
    518518            set ${axis}Max $max
    519519            set ${axis}Num $num
     520            if {$min > $max} {
     521                puts stderr "ERROR: grid $axis axis minimum larger than maximum"
     522                return 0
     523            }
    520524            incr numUniform
    521525        } elseif { $coords != "" } {
Note: See TracChangeset for help on using the changeset viewer.