import type { FunctionalComponent } from 'preact'; import { h, Fragment } from 'preact'; import { useState, useEffect, useRef } from 'preact/hooks'; const TableOfContents: FunctionalComponent<{ headers: any[] }> = ({ headers = [] }) => { const itemOffsets = useRef([]); const [activeId, setActiveId] = useState(undefined); useEffect(() => { const getItemOffsets = () => { const titles = document.querySelectorAll('article :is(h1, h2, h3, h4)'); itemOffsets.current = Array.from(titles).map((title) => ({ id: title.id, topOffset: title.getBoundingClientRect().top + window.scrollY, })); }; getItemOffsets(); window.addEventListener('resize', getItemOffsets); return () => { window.removeEventListener('resize', getItemOffsets); }; }, []); return ( <>

On this page

); }; export default TableOfContents; hon/WarpX_py.cpp?id=581510ffdd5134700fb30bbab3eb8abc294d9ab7'>treecommitdiff
path: root/Source/Python/WarpX_py.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-05-01Fix normalizationGravatar Remi Lehe 1-6/+8
2019-05-01Implement Real-to-complex FFTGravatar Remi Lehe 4-30/+56
2019-04-30update read_raw_data.py to do the write thing whether or not each fab has a ↵Gravatar Andrew Myers 1-2/+4
header
2019-04-30Allow to plot the fine mesh, even with only one levelGravatar Remi Lehe 1-1/+1
2019-04-29fix typoGravatar Andrew Myers 1-1/+1
2019-04-29fix number of particle containers due to upstream changesGravatar Andrew Myers 1-1/+1
2019-04-29Implemented multiple antennas in picmiGravatar Dave Grote 6-21/+39
2019-04-29Revert to enumeration in structGravatar Remi Lehe 1-3/+4
2019-04-29make sure we initialize the new particle components for all the different ↵Gravatar Andrew Myers 2-0/+29
paths for particle initialization
2019-04-29make sure we pass the right number of flags into the WritePlotFile routineGravatar Andrew Myers 1-2/+16
2019-04-29Update PSATD algorithmGravatar Remi Lehe 1-31/+21
2019-04-29Update structure for storing spectral fieldsGravatar Remi Lehe 2-48/+18
2019-04-29replace the compile time checks used for the old particle attributes with ↵Gravatar Andrew Myers 2-47/+52
runtime ones
2019-04-29set up particle comps ids if using boosted frame particlesGravatar Andrew Myers 1-0/+11
2019-04-29add the old positions and momenta to the particle plotvar names if they are usedGravatar Andrew Myers 1-9/+10
2019-04-29add the xold, uxold, etc particle components at runtime if doing boosted ↵Gravatar Andrew Myers 3-13/+53
frame diagnostics for the particles
2019-04-29remove the compilation flag for STORE_OLD_PARTICLE_ATTRIBS - this can be ↵Gravatar Andrew Myers 5-24/+11
done at runtime now
2019-04-28Fix more 2D bugsGravatar Remi Lehe 1-2/+7
2019-04-28Fix 2D bugsGravatar Remi Lehe 2-3/+10
2019-04-28Fix error in calculation of modified k vectorsGravatar Remi Lehe 1-2/+3