|
1 | 1 | {
|
2 | 2 | "metadata": {
|
3 | 3 | "name": "",
|
4 |
| - "signature": "sha256:29457ad5a74b2864b3e41cdc5a822314b0ddc3b330aa4761b0411fb6effe58d5" |
| 4 | + "signature": "sha256:7b3faaa3a17f11cec3fa1ef6ebbc43eec80777909bd16b15ae90d195a22d46fa" |
5 | 5 | },
|
6 | 6 | "nbformat": 3,
|
7 | 7 | "nbformat_minor": 0,
|
|
30 | 30 | "output_type": "stream",
|
31 | 31 | "stream": "stderr",
|
32 | 32 | "text": [
|
33 |
| - "[2014-11-07 13:11:06] INFO: Finmag logging output will be appended to file: '/home/david/.finmag/global.log'\n" |
| 33 | + "[2014-11-28 14:01:34] INFO: Finmag logging output will be appended to file: '/home/david/.finmag/global.log'\n" |
34 | 34 | ]
|
35 | 35 | },
|
36 | 36 | {
|
37 | 37 | "output_type": "stream",
|
38 | 38 | "stream": "stderr",
|
39 | 39 | "text": [
|
40 |
| - "[2014-11-07 13:11:06] DEBUG: Building modules in 'native'...\n" |
| 40 | + "[2014-11-28 14:01:34] DEBUG: Building modules in 'native'...\n" |
41 | 41 | ]
|
42 | 42 | },
|
43 | 43 | {
|
44 | 44 | "output_type": "stream",
|
45 | 45 | "stream": "stderr",
|
46 | 46 | "text": [
|
47 |
| - "[2014-11-07 13:11:07] DEBUG: FinMag 5607:8e36b14270ab630eef92ba6690b5892e077a6011\n" |
| 47 | + "[2014-11-28 14:01:37] DEBUG: FinMag 5637:748ea2d1140ca13bf4c9e7e9b4635fd5e81f41f2\n" |
48 | 48 | ]
|
49 | 49 | },
|
50 | 50 | {
|
51 | 51 | "output_type": "stream",
|
52 | 52 | "stream": "stderr",
|
53 | 53 | "text": [
|
54 |
| - "[2014-11-07 13:11:07] DEBUG: Dolfin 1.4.0 Matplotlib 1.4.1 \n" |
| 54 | + "[2014-11-28 14:01:37] DEBUG: Dolfin 1.4.0 Matplotlib lazily loaded \n" |
55 | 55 | ]
|
56 | 56 | },
|
57 | 57 | {
|
58 | 58 | "output_type": "stream",
|
59 | 59 | "stream": "stderr",
|
60 | 60 | "text": [
|
61 |
| - "[2014-11-07 13:11:07] DEBUG: Numpy 1.8.2 Scipy 0.14.0 \n" |
| 61 | + "[2014-11-28 14:01:37] DEBUG: Numpy 1.8.2 Scipy 0.14.0 \n" |
62 | 62 | ]
|
63 | 63 | },
|
64 | 64 | {
|
65 | 65 | "output_type": "stream",
|
66 | 66 | "stream": "stderr",
|
67 | 67 | "text": [
|
68 |
| - "[2014-11-07 13:11:07] DEBUG: IPython 2.3.0 Python 2.7.6 \n" |
| 68 | + "[2014-11-28 14:01:37] DEBUG: IPython 2.3.0 Python 2.7.6 \n" |
69 | 69 | ]
|
70 | 70 | },
|
71 | 71 | {
|
72 | 72 | "output_type": "stream",
|
73 | 73 | "stream": "stderr",
|
74 | 74 | "text": [
|
75 |
| - "[2014-11-07 13:11:07] DEBUG: Paraview 4.0.1-1ubuntu1 Sundials 2.5.0 \n" |
| 75 | + "[2014-11-28 14:01:37] DEBUG: Paraview 4.0.1-1ubuntu1 Sundials 2.5.0 \n" |
76 | 76 | ]
|
77 | 77 | },
|
78 | 78 | {
|
79 | 79 | "output_type": "stream",
|
80 | 80 | "stream": "stderr",
|
81 | 81 | "text": [
|
82 |
| - "[2014-11-07 13:11:07] DEBUG: Boost-Python <unknown> Linux Ubuntu 14.04.1 LTS \n" |
| 82 | + "[2014-11-28 14:01:37] DEBUG: Boost-Python <unknown> Linux Ubuntu 14.04.1 LTS \n" |
83 | 83 | ]
|
84 | 84 | },
|
85 | 85 | {
|
86 | 86 | "output_type": "stream",
|
87 | 87 | "stream": "stderr",
|
88 | 88 | "text": [
|
89 |
| - "[2014-11-07 13:11:07] DEBUG: Registering debug signal handler. Press Ctrl-Z at any time to stop execution and jump into the debugger.\n" |
| 89 | + "[2014-11-28 14:01:37] DEBUG: Registering debug signal handler. Press Ctrl-Z at any time to stop execution and jump into the debugger.\n" |
90 | 90 | ]
|
91 | 91 | },
|
92 | 92 | {
|
|
112 | 112 | "output_type": "stream",
|
113 | 113 | "stream": "stderr",
|
114 | 114 | "text": [
|
115 |
| - "[2014-11-07 13:11:11] INFO: Finmag logging output will be written to file: '/home/david/hg/ipython-nb-testing/barmini.log' (any old content will be overwritten).\n" |
| 115 | + "[2014-11-28 13:36:24] INFO: Finmag logging output will be written to file: '/home/david/hg/ipython-nb-testing/barmini.log' (any old content will be overwritten).\n" |
116 | 116 | ]
|
117 | 117 | },
|
118 | 118 | {
|
119 | 119 | "output_type": "stream",
|
120 | 120 | "stream": "stderr",
|
121 | 121 | "text": [
|
122 |
| - "[2014-11-07 13:11:11] DEBUG: Creating DataWriter for file 'barmini.ndt'\n" |
| 122 | + "[2014-11-28 13:36:24] DEBUG: Creating DataWriter for file 'barmini.ndt'\n" |
123 | 123 | ]
|
124 | 124 | },
|
125 | 125 | {
|
126 | 126 | "output_type": "stream",
|
127 | 127 | "stream": "stderr",
|
128 | 128 | "text": [
|
129 |
| - "[2014-11-07 13:11:11] INFO: Creating Sim object 'barmini' (rank=0/1).\n" |
| 129 | + "[2014-11-28 13:36:24] INFO: Creating Sim object 'barmini' (rank=0/1).\n" |
130 | 130 | ]
|
131 | 131 | },
|
132 | 132 | {
|
133 | 133 | "output_type": "stream",
|
134 | 134 | "stream": "stderr",
|
135 | 135 | "text": [
|
136 |
| - "[2014-11-07 13:11:11] INFO: <Mesh of topological dimension 3 (tetrahedra) with 45 vertices and 96 cells, ordered>\n" |
| 136 | + "[2014-11-28 13:36:24] INFO: <Mesh of topological dimension 3 (tetrahedra) with 45 vertices and 96 cells, ordered>\n" |
137 | 137 | ]
|
138 | 138 | },
|
139 | 139 | {
|
140 | 140 | "output_type": "stream",
|
141 | 141 | "stream": "stderr",
|
142 | 142 | "text": [
|
143 |
| - "[2014-11-07 13:11:11] DEBUG: Creating LLG object.\n" |
| 143 | + "[2014-11-28 13:36:24] DEBUG: Creating LLG object.\n" |
144 | 144 | ]
|
145 | 145 | },
|
146 | 146 | {
|
147 | 147 | "output_type": "stream",
|
148 | 148 | "stream": "stderr",
|
149 | 149 | "text": [
|
150 |
| - "[2014-11-07 13:11:11] DEBUG: Creating Exchange object with method box-matrix-petsc, in Jacobian.\n" |
| 150 | + "[2014-11-28 13:36:24] WARNING: Integrator reinit was requested, but no integrator is present in the simulation!\n" |
151 | 151 | ]
|
152 | 152 | },
|
153 | 153 | {
|
154 | 154 | "output_type": "stream",
|
155 | 155 | "stream": "stderr",
|
156 | 156 | "text": [
|
157 |
| - "[2014-11-07 13:11:11] DEBUG: Adding interaction Exchange to simulation.\n" |
| 157 | + "[2014-11-28 13:36:24] DEBUG: Creating Exchange object with method box-matrix-petsc, in Jacobian.\n" |
158 | 158 | ]
|
159 | 159 | },
|
160 | 160 | {
|
161 | 161 | "output_type": "stream",
|
162 | 162 | "stream": "stderr",
|
163 | 163 | "text": [
|
164 |
| - "[2014-11-07 13:11:11] DEBUG: Creating Demag object with solver 'FK'.\n" |
| 164 | + "[2014-11-28 13:36:24] DEBUG: Adding interaction Exchange to simulation.\n" |
165 | 165 | ]
|
166 | 166 | },
|
167 | 167 | {
|
168 | 168 | "output_type": "stream",
|
169 | 169 | "stream": "stderr",
|
170 | 170 | "text": [
|
171 |
| - "[2014-11-07 13:11:11] DEBUG: Demag parameters now: {'phi_1': {'absolute_tolerance': 1e-06, 'relative_tolerance': 1e-06, 'maximum_iterations': 10000}, 'phi_2': {'absolute_tolerance': 1e-06, 'relative_tolerance': 1e-06, 'maximum_iterations': 10000}, 'phi_2_solver': 'default', 'phi_2_preconditioner': 'default', 'phi_1_preconditioner': 'default', 'phi_1_solver': 'default'}\n" |
| 171 | + "[2014-11-28 13:36:24] DEBUG: Creating Demag object with solver 'FK'.\n" |
172 | 172 | ]
|
173 | 173 | },
|
174 | 174 | {
|
175 | 175 | "output_type": "stream",
|
176 | 176 | "stream": "stderr",
|
177 | 177 | "text": [
|
178 |
| - "[2014-11-07 13:11:11] DEBUG: Adding interaction Demag to simulation.\n" |
| 178 | + "[2014-11-28 13:36:24] DEBUG: Demag parameters now: {'phi_1': {'absolute_tolerance': 1e-06, 'relative_tolerance': 1e-06, 'maximum_iterations': 10000}, 'phi_2': {'absolute_tolerance': 1e-06, 'relative_tolerance': 1e-06, 'maximum_iterations': 10000}, 'phi_2_solver': 'default', 'phi_2_preconditioner': 'default', 'phi_1_preconditioner': 'default', 'phi_1_solver': 'default'}\n" |
179 | 179 | ]
|
180 | 180 | },
|
181 | 181 | {
|
182 | 182 | "output_type": "stream",
|
183 | 183 | "stream": "stderr",
|
184 | 184 | "text": [
|
185 |
| - "[2014-11-07 13:11:11] DEBUG: Using Krylov solver for demag.\n" |
| 185 | + "[2014-11-28 13:36:24] DEBUG: Adding interaction Demag to simulation.\n" |
186 | 186 | ]
|
187 | 187 | },
|
188 | 188 | {
|
189 | 189 | "output_type": "stream",
|
190 | 190 | "stream": "stderr",
|
191 | 191 | "text": [
|
192 |
| - "[2014-11-07 13:11:11] DEBUG: Creating macro-geometry with demag 1 x 1 tiles (dxdy: 3.0 x 3.0)\n" |
| 192 | + "[2014-11-28 13:36:24] DEBUG: Using Krylov solver for demag.\n" |
193 | 193 | ]
|
194 | 194 | },
|
195 | 195 | {
|
196 | 196 | "output_type": "stream",
|
197 | 197 | "stream": "stderr",
|
198 | 198 | "text": [
|
199 |
| - "[2014-11-07 13:11:11] DEBUG: Boundary element matrix uses 0.01 MB of memory.\n" |
| 199 | + "[2014-11-28 13:36:24] DEBUG: Creating macro-geometry with demag 1 x 1 tiles (dxdy: 3.0 x 3.0)\n" |
200 | 200 | ]
|
201 | 201 | },
|
202 | 202 | {
|
203 | 203 | "output_type": "stream",
|
204 | 204 | "stream": "stderr",
|
205 | 205 | "text": [
|
206 |
| - "[2014-11-07 13:11:11] DEBUG: Successfully created simulation 'barmini'\n" |
| 206 | + "[2014-11-28 13:36:24] DEBUG: Boundary element matrix uses 0.01 MB of memory.\n" |
| 207 | + ] |
| 208 | + }, |
| 209 | + { |
| 210 | + "output_type": "stream", |
| 211 | + "stream": "stderr", |
| 212 | + "text": [ |
| 213 | + "[2014-11-28 13:36:24] DEBUG: Successfully created simulation 'barmini'\n" |
207 | 214 | ]
|
208 | 215 | }
|
209 | 216 | ],
|
|
222 | 229 | "output_type": "stream",
|
223 | 230 | "stream": "stderr",
|
224 | 231 | "text": [
|
225 |
| - "[2014-11-07 13:11:11] INFO: Simulation will run until t = 1e-10 s.\n" |
| 232 | + "[2014-11-28 13:36:24] INFO: Simulation will run until t = 1e-10 s.\n" |
226 | 233 | ]
|
227 | 234 | },
|
228 | 235 | {
|
229 | 236 | "output_type": "stream",
|
230 | 237 | "stream": "stderr",
|
231 | 238 | "text": [
|
232 |
| - "[2014-11-07 13:11:11] INFO: Create integrator sundials with kwargs={}\n" |
| 239 | + "[2014-11-28 13:36:24] INFO: Create integrator sundials with kwargs={}\n" |
233 | 240 | ]
|
234 | 241 | },
|
235 | 242 | {
|
236 | 243 | "output_type": "stream",
|
237 | 244 | "stream": "stderr",
|
238 | 245 | "text": [
|
239 |
| - "[2014-11-07 13:11:11] DEBUG: Creating integrator with backend sundials.\n" |
| 246 | + "[2014-11-28 13:36:24] DEBUG: Creating integrator with backend sundials.\n" |
240 | 247 | ]
|
241 | 248 | },
|
242 | 249 | {
|
243 | 250 | "output_type": "stream",
|
244 | 251 | "stream": "stderr",
|
245 | 252 | "text": [
|
246 |
| - "[2014-11-07 13:11:11] DEBUG: Updating get method for steps in TableWriter(name=barmini.ndt)\n" |
| 253 | + "[2014-11-28 13:36:24] DEBUG: Updating get method for steps in TableWriter(name=barmini.ndt)\n" |
247 | 254 | ]
|
248 | 255 | },
|
249 | 256 | {
|
250 | 257 | "output_type": "stream",
|
251 | 258 | "stream": "stderr",
|
252 | 259 | "text": [
|
253 |
| - "[2014-11-07 13:11:11] DEBUG: Updating get method for last_step_dt in TableWriter(name=barmini.ndt)\n" |
| 260 | + "[2014-11-28 13:36:24] DEBUG: Updating get method for last_step_dt in TableWriter(name=barmini.ndt)\n" |
254 | 261 | ]
|
255 | 262 | },
|
256 | 263 | {
|
257 | 264 | "output_type": "stream",
|
258 | 265 | "stream": "stderr",
|
259 | 266 | "text": [
|
260 |
| - "[2014-11-07 13:11:11] DEBUG: Updating get method for dmdt in TableWriter(name=barmini.ndt)\n" |
| 267 | + "[2014-11-28 13:36:24] DEBUG: Updating get method for dmdt in TableWriter(name=barmini.ndt)\n" |
261 | 268 | ]
|
262 | 269 | },
|
263 | 270 | {
|
264 | 271 | "output_type": "stream",
|
265 | 272 | "stream": "stderr",
|
266 | 273 | "text": [
|
267 |
| - "[2014-11-07 13:11:27] INFO: Simulation has reached time t = 1e-10 s.\n" |
| 274 | + "[2014-11-28 13:36:26] INFO: Simulation has reached time t = 1e-10 s.\n" |
268 | 275 | ]
|
269 | 276 | }
|
270 | 277 | ],
|
|
337 | 344 | ],
|
338 | 345 | "prompt_number": 6
|
339 | 346 | },
|
| 347 | + { |
| 348 | + "cell_type": "code", |
| 349 | + "collapsed": false, |
| 350 | + "input": [ |
| 351 | + "# This is meant to fail when the number of lines\n", |
| 352 | + "# mismatch\n", |
| 353 | + "for i in range(np.random.randint(1, 8)):\n", |
| 354 | + " print i" |
| 355 | + ], |
| 356 | + "language": "python", |
| 357 | + "metadata": {}, |
| 358 | + "outputs": [ |
| 359 | + { |
| 360 | + "output_type": "stream", |
| 361 | + "stream": "stdout", |
| 362 | + "text": [ |
| 363 | + "0\n", |
| 364 | + "1\n", |
| 365 | + "2\n", |
| 366 | + "3\n" |
| 367 | + ] |
| 368 | + } |
| 369 | + ], |
| 370 | + "prompt_number": 8 |
| 371 | + }, |
340 | 372 | {
|
341 | 373 | "cell_type": "code",
|
342 | 374 | "collapsed": false,
|
|
0 commit comments