diff --git a/Heat_method_3/test/Heat_method_3/heat_method_concept.cpp b/Heat_method_3/test/Heat_method_3/heat_method_concept.cpp index 03608054d29..e099e1f1530 100644 --- a/Heat_method_3/test/Heat_method_3/heat_method_concept.cpp +++ b/Heat_method_3/test/Heat_method_3/heat_method_concept.cpp @@ -28,6 +28,9 @@ int main() //read in mesh Surface_mesh sm; + if(sm.is_empty()){ + return 0; + } //the heat intensity will hold the distance values from the source set Vertex_distance_map heat_intensity = sm.add_property_map("v:heat_intensity", 0).first;