From 9f96ea216cd329ec07f249ec8734a1b196c73223 Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 23 Sep 2003 21:36:10 +0000 Subject: [PATCH] Work around a problem with conversions from const char* to char*. Aparently one of the tecplot functions has a wrong signature and newer gccs don't like the conversion any more. git-svn-id: https://svn.dealii.org/trunk@8008 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/data_out_base.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 0d187a74d4..0984b6d71b 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -3493,21 +3493,23 @@ void DataOutBase::write_tecplot_binary (const std::vector > int ierr = 0, num_nodes = static_cast(n_nodes), num_cells = static_cast(n_cells); - + + char dot[2] = {'.', 0}; ierr = TECINI (NULL, tecVarNames, file_name, - static_cast("."), + dot, &tec_debug, &is_double); Assert (ierr == 0, ExcErrorOpeningTecplotFile(file_name)); - + + char FEBLOCK[] = {'F','E','B','L','O','C','K',0}; ierr = TECZNE (NULL, &num_nodes, &num_cells, &cell_type, - static_cast("FEBLOCK"), + FEBLOCK, NULL); Assert (ierr == 0, ExcTecplotAPIError()); -- 2.39.5