chiark / gitweb /
spelling-fixes
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Mon, 16 Jul 2018 06:02:26 +0000 (07:02 +0100)
committerAndreas Tille <tille@debian.org>
Mon, 16 Jul 2018 06:02:26 +0000 (07:02 +0100)
Gbp-Pq: Name spelling-fixes.patch

direct/DIRect.c
swig/nlopt-python.cpp
swig/numpy.i

index f0a7c1a95cd7f6bd311d3f26a1a80f0e21d729d3..6aba0b75b5ca74be6a6fd9d7f7685973dbc7736a 100644 (file)
 /* |            for the function within the hyper-box.                     | */
 /* |                                                                       | */
 /* |    minf -- The value of the function at x.                            | */
-/* |  Ierror -- Error flag. If Ierror is lower 0, an error has occured. The| */
-/* |            values of Ierror mean                                      | */
+/* |  Ierror -- Error flag. If Ierror is lower 0, an error has occurred.   | */
+/* |            The values of Ierror mean                                  | */
 /* |            Fatal errors :                                             | */
 /* |             -1   u(i) <= l(i) for some i.                             | */
 /* |             -2   maxf is too large.                                   | */
 /* |             -3   Initialization in DIRpreprc failed.                  | */
 /* |             -4   Error in DIRSamplepoints, that is there was an error | */
 /* |                  in the creation of the sample points.                | */
-/* |             -5   Error in DIRSamplef, that is an error occured while  | */
+/* |             -5   Error in DIRSamplef, that is an error occurred while | */
 /* |                  the function was sampled.                            | */
-/* |             -6   Error in DIRDoubleInsert, that is an error occured   | */
+/* |             -6   Error in DIRDoubleInsert, that is an error occurred  | */
 /* |                  DIRECT tried to add all hyperrectangles with the same| */
 /* |                  size and function value at the center. Either        | */
 /* |                  increase maxdiv or use our modification (Jones = 1). | */
            algmethod, &MAXFUNC, &MAXDEEP, fglobal, fglper, ierror, &epsfix, &
                      iepschange, volper, sigmaper);
 /* +-----------------------------------------------------------------------+ */
-/* | If an error has occured while writing the header (we do some checking | */
+/* | If an error has occurred while writing the header (we do some checking| */
 /* | of variables there), return to the main program.                      | */
 /* +-----------------------------------------------------------------------+ */
     if (*ierror < 0) {
     direct_dirinitlist_(anchor, &ifree, point, f, &MAXFUNC, &MAXDEEP);
 /* +-----------------------------------------------------------------------+ */
 /* | Call the routine to initialise the mapping of x from the n-dimensional| */
-/* | unit cube to the hypercube given by u and l. If an error occured,     | */
+/* | unit cube to the hypercube given by u and l. If an error occurred,    | */
 /* | give out a error message and return to the main program with the error| */
 /* | flag set.                                                             | */
 /* | JG 07/16/01 Changed call to remove unused data.                       | */
     if (*ierror < 0) {
        if (*ierror == -4) {
            if (logfile)
-                fprintf(logfile, "WARNING: Error occured in routine DIRsamplepoints.\n");
+                fprintf(logfile, "WARNING: Error occurred in routine DIRsamplepoints.\n");
            goto cleanup;
        }
        if (*ierror == -5) {
            if (logfile)
-                fprintf(logfile, "WARNING: Error occured in routine DIRsamplef..\n");
+                fprintf(logfile, "WARNING: Error occurred in routine DIRsamplef..\n");
            goto cleanup;
        }
        if (*ierror == -102) goto L100;
                        MAXDEEP, &oops);
                if (oops > 0) {
                    if (logfile)
-                        fprintf(logfile, "WARNING: Error occured in routine DIRsamplepoints.\n");
+                        fprintf(logfile, "WARNING: Error occurred in routine DIRsamplepoints.\n");
                    *ierror = -4;
                    goto cleanup;
                }
                }
                if (oops > 0) {
                    if (logfile)
-                        fprintf(logfile, "WARNING: Error occured in routine DIRsamplef.\n");
+                        fprintf(logfile, "WARNING: Error occurred in routine DIRsamplef.\n");
                    *ierror = -5;
                    goto cleanup;
                }
index 30a2dad1c1367ba83bc729808165e6d6676a0c21..ecc7c09c442546fa1232cd5a2d417a1c8930d224 100644 (file)
@@ -4895,7 +4895,7 @@ SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
     if (PyInstance_Check(py_obj)) return "instance"    ;
 #endif
 
-    return "unkown type";
+    return "unknown type";
   }
 
   /* Given a NumPy typecode, return a string describing the type.
index f2714cc34613afbddd2ecbd5c5f1e911cd8df52e..05ae90b2bed289148ba316425735efa46b6616a5 100644 (file)
@@ -89,7 +89,7 @@
     if (PyInstance_Check(py_obj)) return "instance"    ;
 %#endif
 
-    return "unkown type";
+    return "unknown type";
   }
 
   /* Given a NumPy typecode, return a string describing the type.