# Author:  Lisandro Dalcin
# Contact: dalcinl@gmail.com
"""
Runtime configuration parameters
"""

initialize = True
"""
Automatic MPI initialization at import time

* Any of ``{True  | 1 | "yes" }``: initialize MPI at import time
* Any of ``{False | 0 | "no"  }``: do not initialize MPI at import time
"""


threaded = True
"""
Request for thread support at MPI initialization

* Any of ``{True  | 1 | "yes" }``: initialize MPI with ``MPI_Init_thread()``
* Any of ``{False | 0 | "no"  }``: initialize MPI with ``MPI_Init()``
"""


thread_level = "multiple"
"""
Level of thread support to request at MPI initialization

* ``"single"``     : use ``MPI_THREAD_SINGLE``
* ``"funneled"``   : use ``MPI_THREAD_FUNNELED``
* ``"serialized"`` : use ``MPI_THREAD_SERIALIZED``
* ``"multiple"``   : use ``MPI_THREAD_MULTIPLE``
"""


finalize = None
"""
Automatic MPI finalization at exit time

* Any of ``{True  | 1 | "yes" }``: call ``MPI_Finalize()`` at exit time
* Any of ``{False | 0 | "no"  }``: do not call ``MPI_Finalize()`` at exit time
"""

@@ -151,21 +151,17 @@
 t import
- time
+.
 %0A%0A* Any 
@@ -166,38 +166,34 @@
 y of %60%60%7BTrue
-  %7C 1 %7C
+,
  %22yes%22
- 
+, 1
 %7D%60%60: initial
@@ -209,21 +209,17 @@
 t import
- time
+.
 %0A* Any o
@@ -224,37 +224,33 @@
  of %60%60%7BFalse
- %7C 0 %7C
+,
  %22no%22
-  
+, 0
 %7D%60%60: do not 
@@ -273,21 +273,17 @@
 t import
- time
+.
 %0A%22%22%22%0A%0A%0At
@@ -345,24 +345,25 @@
 itialization
+.
 %0A%0A* Any of %60
@@ -364,38 +364,34 @@
 y of %60%60%7BTrue
-  %7C 1 %7C
+,
  %22yes%22
- 
+, 1
 %7D%60%60: initial
@@ -424,16 +424,17 @@
 read()%60%60
+.
 %0A* Any o
@@ -439,37 +439,33 @@
  of %60%60%7BFalse
- %7C 0 %7C
+,
  %22no%22
-  
+, 0
 %7D%60%60: initial
@@ -491,16 +491,17 @@
 Init()%60%60
+.
 %0A%22%22%22%0A%0A%0At
@@ -585,16 +585,17 @@
 lization
+.
 %0A%0A* %60%60%22s
@@ -634,16 +634,17 @@
 SINGLE%60%60
+.
 %0A* %60%60%22fu
@@ -680,24 +680,25 @@
 D_FUNNELED%60%60
+.
 %0A* %60%60%22serial
@@ -736,16 +736,17 @@
 ALIZED%60%60
+.
 %0A* %60%60%22mu
@@ -786,16 +786,17 @@
 LTIPLE%60%60
+.
 %0A%22%22%22%0A%0A%0Af
@@ -848,22 +848,86 @@
  at exit
- time%0A
+.%0A%0A* %60%60None%60%60: Finalize MPI  at exit iff it was initialized at import.
 %0A* Any o
@@ -939,22 +939,18 @@
 True
-  %7C 1 %7C
+,
  %22yes%22
- 
+, 1
 %7D%60%60:
@@ -981,21 +981,17 @@
  at exit
- time
+.
 %0A* Any o
@@ -1004,21 +1004,17 @@
 alse
- %7C 0 %7C
+,
  %22no%22
-  
+, 0
 %7D%60%60:
@@ -1056,13 +1056,9 @@
 exit
- time
+.
 %0A%22%22%22

Update docstrings in mpi4py.rc