Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswess committed Jun 14, 2024
1 parent a673817 commit 7457ef8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
8 changes: 6 additions & 2 deletions _sources/examples/ring_resonator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@
"now = time()\n",
"\n",
"drawevery = 400\n",
"drawtime = 0\n",
"with TaskManager():\n",
" while t < tend:\n",
" tmp.data = -B_big.T * gfu.vec\n",
Expand All @@ -709,12 +710,15 @@
" t += tau\n",
" i += 1\n",
" if i%drawevery == 0:\n",
" drawnow = time()\n",
" #scene.Redraw()\n",
" #print(\"t = {}, \\t {:e} DoFs/s\".format(t,fes.ndof*drawevery/(time()-now)),end = \"\\r\")\n",
" #now = time()\n",
" gfp_history.AddMultiDimComponent(gfu.components[0].vec)\n",
" drawtime += time()-drawnow\n",
"\n",
"dofss = fes.ndof*i/(time()-startnow)"
"computetime = time()-startnow-drawtime\n",
"dofss = fes.ndof*i/computetime"
]
},
{
Expand All @@ -725,7 +729,7 @@
"outputs": [],
"source": [
"Draw(gfp_history,autoscale = False, min = -0.05, max = 0.05,order=2,intpoints=dcs.GetWebGuiPoints(2),animate = True);\n",
"print(\"computed i = {} timesteps with an average of {:e} Dofs/s\".format(i,dofss))"
"print(\"computed i = {} timesteps in {} seconds with an average of {:e} Dofs/s\".format(i,computetime,dofss))"
]
},
{
Expand Down
Loading

0 comments on commit 7457ef8

Please sign in to comment.