lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
122 stars 49 forks source link

dump avs error reporting needs improvement #176

Open millerta opened 5 years ago

millerta commented 5 years ago

Add line to dump/avs that captures all general errors and indicates problem with file. Instead of current error reading file that writes confusing errors. This example input file has the wrong numbers for the node ids.

polygon_frac.inp
8 0 0 0 0
2 120.0 0.0  0.0
3 120.0 50.0 0.0
4 120.0 58.0 0.0
5 120.0 108.0 0.0
6   0.0 108.0 0.0
7   0.0  58.0 0.0
8   0.0  50.0 0.0
1 0.0   0.0  0.0

But this is what is reported:

read/avs/polygon_frac.inp/mo                                                    

The AVS file, , does not exist.                                         

The AVS file, , does not exist.                                         
WARNING: MO has zero nodes                                                      
WARNING: NO ACTION