[cig-commits] r14445 - in long/3D/Gale/trunk: . src/StGermain/Discretisation/Mesh/src
walter at geodynamics.org
walter at geodynamics.org
Wed Mar 25 06:39:18 PDT 2009
Author: walter
Date: 2009-03-25 06:39:18 -0700 (Wed, 25 Mar 2009)
New Revision: 14445
Modified:
long/3D/Gale/trunk/
long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/SurfaceAdaptor.c
Log:
r2586 at dante: boo | 2009-03-25 06:38:33 -0700
Make SurfaceAdaptor better explain itself when it can not file ascii_topo
Property changes on: long/3D/Gale/trunk
___________________________________________________________________
Name: svk:merge
- 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:2585
+ 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:2586
Modified: long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/SurfaceAdaptor.c
===================================================================
--- long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/SurfaceAdaptor.c 2009-03-25 13:39:11 UTC (rev 14444)
+++ long/3D/Gale/trunk/src/StGermain/Discretisation/Mesh/src/SurfaceAdaptor.c 2009-03-25 13:39:18 UTC (rev 14445)
@@ -169,6 +169,11 @@
self->info.topo_data.heights=malloc(sizeof(int)*nx*ny);
self->surfaceType = SurfaceAdaptor_SurfaceType_Topo_Data;
fp=fopen("ascii_topo","r");
+ if(!fp)
+ {
+ printf("Can not open the file ascii_topo\n");
+ abort();
+ }
for(i=0;i<nx;++i)
for(j=0;j<ny;++j)
{
More information about the CIG-COMMITS
mailing list