* 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....)

This commit is contained in:
Philippose Rajan 2009-03-09 23:01:07 +00:00
parent 28270266ca
commit 69b63a2c25

View File

@ -2830,7 +2830,15 @@ namespace netgen
ifstream msf(meshsizefilename); 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"); PrintMessage (3, "Load local mesh-size");
int nmsp, nmsl; int nmsp, nmsl;