From: hartmann Date: Tue, 11 Mar 2008 07:09:17 +0000 (+0000) Subject: Fix: don't switch_y_z but still invert_all_cells_of_negative_grid. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9abd1fcda5eab1c6a31219167c6ce697e5159129;p=dealii-svn.git Fix: don't switch_y_z but still invert_all_cells_of_negative_grid. git-svn-id: https://svn.dealii.org/trunk@15883 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_in.cc b/deal.II/deal.II/source/grid/grid_in.cc index 70e5c918cd..5a43966ab3 100644 --- a/deal.II/deal.II/source/grid/grid_in.cc +++ b/deal.II/deal.II/source/grid/grid_in.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1133,7 +1133,7 @@ void GridIn<3>::read_netcdf (const std::string &filename) std::vector > point_values( 3, std::vector (n_vertices)); // we switch y and z - const bool switch_y_z=true; + const bool switch_y_z=false; points_xc->get(&*point_values[0].begin(), n_vertices); if (switch_y_z) { @@ -1235,8 +1235,7 @@ void GridIn<3>::read_netcdf (const std::string &filename) } GridTools::delete_unused_vertices(vertices, cells, subcelldata); - if (switch_y_z) - GridReordering::invert_all_cells_of_negative_grid (vertices, cells); + GridReordering::invert_all_cells_of_negative_grid (vertices, cells); GridReordering::reorder_cells (cells); tria->create_triangulation_compatibility (vertices, cells, subcelldata); #endif