Skip to content

Commit d1f6a08

Browse files
Oliver LaslettOliver Laslett
Oliver Laslett
authored and
Oliver Laslett
committed
merge
2 parents 59d8a89 + 80696f9 commit d1f6a08

File tree

2 files changed

+126
-62
lines changed

2 files changed

+126
-62
lines changed

.ipynb_checkpoints/finmag_nb_test-checkpoint.ipynb

+63-31
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:29457ad5a74b2864b3e41cdc5a822314b0ddc3b330aa4761b0411fb6effe58d5"
4+
"signature": "sha256:7b3faaa3a17f11cec3fa1ef6ebbc43eec80777909bd16b15ae90d195a22d46fa"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -30,63 +30,63 @@
3030
"output_type": "stream",
3131
"stream": "stderr",
3232
"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"
3434
]
3535
},
3636
{
3737
"output_type": "stream",
3838
"stream": "stderr",
3939
"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"
4141
]
4242
},
4343
{
4444
"output_type": "stream",
4545
"stream": "stderr",
4646
"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"
4848
]
4949
},
5050
{
5151
"output_type": "stream",
5252
"stream": "stderr",
5353
"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"
5555
]
5656
},
5757
{
5858
"output_type": "stream",
5959
"stream": "stderr",
6060
"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"
6262
]
6363
},
6464
{
6565
"output_type": "stream",
6666
"stream": "stderr",
6767
"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"
6969
]
7070
},
7171
{
7272
"output_type": "stream",
7373
"stream": "stderr",
7474
"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"
7676
]
7777
},
7878
{
7979
"output_type": "stream",
8080
"stream": "stderr",
8181
"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"
8383
]
8484
},
8585
{
8686
"output_type": "stream",
8787
"stream": "stderr",
8888
"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"
9090
]
9191
},
9292
{
@@ -112,98 +112,105 @@
112112
"output_type": "stream",
113113
"stream": "stderr",
114114
"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"
116116
]
117117
},
118118
{
119119
"output_type": "stream",
120120
"stream": "stderr",
121121
"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"
123123
]
124124
},
125125
{
126126
"output_type": "stream",
127127
"stream": "stderr",
128128
"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"
130130
]
131131
},
132132
{
133133
"output_type": "stream",
134134
"stream": "stderr",
135135
"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"
137137
]
138138
},
139139
{
140140
"output_type": "stream",
141141
"stream": "stderr",
142142
"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"
144144
]
145145
},
146146
{
147147
"output_type": "stream",
148148
"stream": "stderr",
149149
"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"
151151
]
152152
},
153153
{
154154
"output_type": "stream",
155155
"stream": "stderr",
156156
"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"
158158
]
159159
},
160160
{
161161
"output_type": "stream",
162162
"stream": "stderr",
163163
"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"
165165
]
166166
},
167167
{
168168
"output_type": "stream",
169169
"stream": "stderr",
170170
"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"
172172
]
173173
},
174174
{
175175
"output_type": "stream",
176176
"stream": "stderr",
177177
"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"
179179
]
180180
},
181181
{
182182
"output_type": "stream",
183183
"stream": "stderr",
184184
"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"
186186
]
187187
},
188188
{
189189
"output_type": "stream",
190190
"stream": "stderr",
191191
"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"
193193
]
194194
},
195195
{
196196
"output_type": "stream",
197197
"stream": "stderr",
198198
"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"
200200
]
201201
},
202202
{
203203
"output_type": "stream",
204204
"stream": "stderr",
205205
"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"
207214
]
208215
}
209216
],
@@ -222,49 +229,49 @@
222229
"output_type": "stream",
223230
"stream": "stderr",
224231
"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"
226233
]
227234
},
228235
{
229236
"output_type": "stream",
230237
"stream": "stderr",
231238
"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"
233240
]
234241
},
235242
{
236243
"output_type": "stream",
237244
"stream": "stderr",
238245
"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"
240247
]
241248
},
242249
{
243250
"output_type": "stream",
244251
"stream": "stderr",
245252
"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"
247254
]
248255
},
249256
{
250257
"output_type": "stream",
251258
"stream": "stderr",
252259
"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"
254261
]
255262
},
256263
{
257264
"output_type": "stream",
258265
"stream": "stderr",
259266
"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"
261268
]
262269
},
263270
{
264271
"output_type": "stream",
265272
"stream": "stderr",
266273
"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"
268275
]
269276
}
270277
],
@@ -337,6 +344,31 @@
337344
],
338345
"prompt_number": 6
339346
},
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+
},
340372
{
341373
"cell_type": "code",
342374
"collapsed": false,

0 commit comments

Comments
 (0)