From 69b63a2c256ceaf10dfe6e4bfdaceb7a05afb43f Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Mon, 9 Mar 2009 23:01:07 +0000 Subject: [PATCH] * Modified function LoadLocalMeshSize to print a message if the specified mesh file could not be loaded (due to non-existent file, no read access, etc....) --- libsrc/meshing/meshclass.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 217fbf2e..a1fe7275 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -2830,7 +2830,15 @@ namespace netgen ifstream msf(meshsizefilename); - if (!msf) return; + // Philippose - 09/03/2009 + // Adding print message information in case the specified + // does not exist, or does not load successfully due to + // other reasons such as access rights, etc... + if (!msf) + { + PrintMessage(2, "Error loading Mesh Size File: ", meshsizefilename, "....","Skipping!"); + return; + } PrintMessage (3, "Load local mesh-size"); int nmsp, nmsl;