]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Extend allowed character set for names in AVS files a bit.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 4 Nov 1998 09:35:14 +0000 (09:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 4 Nov 1998 09:35:14 +0000 (09:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@627 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h
deal.II/deal.II/source/numerics/data_io.cc

index cd84fd0546945a0ac6a1f8ce7f976e99ce6cbd17..fab3fdbbc7c5d88a43f592c37ad4d703c142a601 100644 (file)
@@ -404,7 +404,7 @@ class DataOut {
                                      */
     DeclException1 (ExcInvalidCharacter,
                    string,
-                   << "Please use only the characters [a-zA-Z0-9_] for" << endl
+                   << "Please use only the characters [a-zA-Z0-9_<>()] for" << endl
                    << "description strings since AVS will only accept these." << endl
                    << "The string you gave was <" << arg1 << ">.");
     
index cef6ff048aa86e82a73077b107cba2d008d8ae43..708fbb89100da03c7e80d802d3c7e01c04cb9841 100644 (file)
@@ -213,11 +213,11 @@ void DataOut<dim>::add_data_vector (const dVector &vec,
          ExcInvalidVectorSize (vec.size(), dofs->n_dofs()));
   Assert (name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
                                 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                "0123456789_") == string::npos,
+                                "0123456789_<>()") == string::npos,
          ExcInvalidCharacter (name));
   Assert (units.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
                                  "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                 "0123456789_") == string::npos,
+                                 "0123456789_<>()") == string::npos,
          ExcInvalidCharacter (units));
   
   DataEntry new_entry (&vec, name, units);

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.