]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a problem with conversions from const char* to
authormike <mike@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Sep 2003 21:36:10 +0000 (21:36 +0000)
committermike <mike@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Sep 2003 21:36:10 +0000 (21:36 +0000)
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

index 0d187a74d4b6aa82c534d0264d66c5b7b0e58dc7..0984b6d71b65d93ae6d8c03fd1b4ef1ed0c1f9ab 100644 (file)
@@ -3493,21 +3493,23 @@ void DataOutBase::write_tecplot_binary (const std::vector<Patch<dim,spacedim> >
      int ierr      = 0,
          num_nodes = static_cast<int>(n_nodes),
          num_cells = static_cast<int>(n_cells);
-   
+
+     char dot[2] = {'.', 0};
      ierr = TECINI (NULL,
                    tecVarNames,
                    file_name,
-                   static_cast<char*>("."),
+                   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<char*>("FEBLOCK"),
+                   FEBLOCK,
                    NULL);
      
      Assert (ierr == 0, ExcTecplotAPIError());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.