1 '''Module to define interaction functions for theia.'''
2
3
4
5
6
7
8 usage = "Usage: theia [options] FNAME\n\nArguments:\n"\
9 + " FNAME\t\t .tia format input file name."
10
11 welcomeString = '''
12 \ttheia Copyright (C) 2017 R. Duque
13 \tLicense: GNU GPLv3+ <http://gnu.org/licenses.gpl.html>
14 \tThis is free software: you are free to change and redistribute it.
15 \tThere is ABSOLUTELY NO WARRANTY, to the extent permitted by law.
16 '''
17
18 recursionErrorString = '''
19
20 It looks like you reached the maximum recursion depth of your Python
21 implementation (generally around 1000). The beam tracer builds the beam tree
22 recursively and in your case the recursion went to far. The order and threshold
23 simulation parameters were made to prevent this situation. What you can do:
24
25 \t1. Make sure you're running with reasonable order and threshold parameters;
26 \t2. Increase the maximum recursion depth of your Python environment by placing
27 \t `sys.setrecursionlimit([whatever you need])`
28 \t right under the `"if __name__ == '__main__'` line in bin/theia, rebuild
29 \t theia with `make build-theia` in the project root and rerun your simulation;
30 \t3. Contact your local administrator to increase the maximum recursion depth
31 \t on a system-wide basis and rerun your simulation.
32 '''
33