hel-astro-lab / runko

Modern C++/python CPU/GPU plasma toolbox
https://runko.readthedocs.io
MIT License
48 stars 19 forks source link

Rename #18

Closed natj closed 6 years ago

natj commented 6 years ago

Applying refactor tool with

NxTile
NyTile
NzTile
tileType => tile_t
tileID => tile_id
OtherType => Other_t
getTileInd => get_tile_ind
ArrayFiller => Array_filler
TagName => Tag_name
tagName => tag_name
WriteMode => Write_mode
corgiCell => corgi_cell
TileID_t 
TileMap => Tile_map
updateTile => update_tile
otMap 
virtualNeighborhood => virtual_nhood
getDataPtr => get_dataptr
corgiComm => corgi_comm
getAll => get_all
mpiGrid => mpi_grid
createTile => create_tile
getVirtuals => get_virtuals
analyzeBoundaryTiles => analyze_boundaries
bcastMpiGrid => bcast_mpi_grid
communicateSendTiles => send_tiles
communicateRecvTiles => recv_tiles
dataContainer 
getNewData => get_new_data
getNew => get_new
getMpiGrid => get_mpi_grid
setMpiGrid => set_mpi_grid
ValueType => value_t
lastEl => last_element
pyGetMpiGrid => py_get_mpi_grid
pySetMpiGrid => py_set_mpi_grid
DimensionLength 
getNx => get_Nx
getNy => get_Ny
getNz => get_Nz
getXmin => get_xmin
getXmax => get_xmax
getYmin => get_ymin
getYmax => get_ymax
getZmin => get_zmin
getZmax => get_zmax
getLocalTiles => get_local_tiles
isLocal => is_local
copyVert => copy_vert
copyHorz => copy_horz
addData => add_data
updateBoundaries => update_boundaries
prayForOdin => pray_for_odin
commType 
addTile => add_tile
getTileIds => get_tile_ids
corgiTile => corgi_tile
initialValue => initial_value
setGridLims => set_grid_lims
getTilePtrInd => get_tileptr_ind
corgiNode => corgi_node
dimensionLengths => dimension_lengths
getTilePtr => get_tileptr
Nincoming_tiles => number_of_incoming_tiles
getCellPtr => get_tileptr
petShop => pet_shop
TilePtr => Tileptr
CellPtr => Tileptr
CellType => Tile_t
DataContainer 
currentStep => current_step
_mpiGrid => _mpi_grid
getTile => get_tile
getData => get_data
CellularAutomataCell => CA_tile
natj commented 6 years ago

working time snapshot here

natj commented 6 years ago

Ran refactor tool with:

pushE1d => push_e_1d
pushE3d => push_e_3d
yeeDt
yeeDy
yeeDz
TileInfo
NzGrid
TileDamped
TileDamped1D_LX
TileDamped1D_RX
TileDamped2D_LX
TileDamped2D_RX
TileDamped2D_LY
TileDamped2D_RY
Tile_wall_LX
Tile_wall_RX
Tile_wall_LY
Tile_wall_RY
declare_Grid => declare_grid
Tile_outflow_L
Tile_outflow_R
Tile_piston
PicTile
vlasovTile
PicTileWall_LX
PicTileWall_RX
PicTileWall_LY
PicTileWall_RY
PlasmaTileDamped_LX
PlasmaTileDamped_RX
PlasmaTileDamped_LY
PlasmaTileDamped_RY
stepInitial1d => initial_step_1d
stepVelocity1d => step_velocity_1d
stepVelocityGravity1d => step_velocity_with_gravity_1d
sliceVal => slice_value
Species
addTile2 => add_tile2
_getvD
_getvU
AmrMomentumFwdLagrangianSolver
tileId => tile_id
pushE2d_damped => push_e_2d_damped
yeeDx
NxGrid
NyGrid
AdaptiveMesh3D
VlasovVelocitySolver
VlasovSpatialSolver
getPlasmaSpecies => get_plasma_species
insertInitialSpecies => insert_initial_species
PicTileWall
cycleCurrent2D => cycle_current_2d
updateBoundaries2D => update_boundaries_2d
exchangeCurrents2D => exchange_currents_2d
Nblocks
zFill => z_fill
getBlockID => get_block_id
getIndices => get_indices
allBlocks => all_blocks
getSize => get_size
getCenter => get_center
addBundle => add_bundle
getSheet => get_sheet
sizeInBytes => size_in_bytes
capacityInBytes => capacity_in_bytes
loadGrid => load_grid
setDelta => set_delta
dataContainer
getConstYee => get_const_yee
getConstAnalysis => get_const_analysis
copyHorzYee => copy_horz_yee
addHorzYee => add_horz_yee
copyFaceYee => copy_face_yee
addFaceYee => add_face_yee
readMesh => read_mesh
checkSizes => check_size
Ehalf
velocityTensorProduct => velocity_tensor_product
DimensionLength
oneD
Analysis
Namer
PyMomentumSolver
PySpatialSolver
stepVelocityGravity => step_velocity_with_gravity
iGrid
jGrid 
loadValue => load_value
getGrid => get_grid
getPencil => get_pencil
updateFutureCurrent => update_future_current
commType
Check
Write
Solver
Container
NyMesh
NxMesh 
addYeeLattice => add_yee_lattice
copyVertYee => copy_vert_yee
addVertYee => add_vert_yee
addVert => add_vert
addHorz => add_horz
addFace => add_face
copyZdirPencilYee => copy_z_pencil_yee
addZdirPencilYee => add_z_pencil_yee
addZdirPencil => add_z_pencil
resizeEM => resize_em
eneArr
writeMesh => write_mesh
readYee => read_yee
declare_PicTileWall
declare_PlasmaTileDamped 
setBundle => set_bundle
getDx => get_dx
getDeltaSlice => get_delta_slice
dampFields => damp_fields
getAnalysis => get_analysis
cycleYee => cycle_yee
cycleCurrent => cycle_current
Communicator
wgtArr 
stepInitial => initial_step
stepVelocity => step_velocity
getBlock => get_block
isNonZero => is_non_zero
checkCell => check_cell
FullAmrMomentumLagrangianSolver
Fhalf
exchangeCurrents => exchange_currents
LinearInterpolator
BorisPusher
declare_TileDamped
GravityAmrMomentumLagrangianSolver
writeYee => write_yee
writeAnalysis => write_analysis
getBundle => get_bundle
loadBlock => load_block
getIndex => get_index
depositCurrent => deposit_current
addAnalysisSpecies => add_analysis_species
copyFace => copy_face
copyZdirPencil => copy_z_pencil
declare_Mesh => declare_mesh
Einc
Binc
DataContainer
twoD
pushHalfB => push_half_b
Nprtcls
stepLocation => step_location
pushE => push_e
AmrSpatialLagrangianSolver
Write_mode
velArr
locArr
Nspecies
Analyzator
PhotonBlock
SpatialSolver
getSlice => get_slice
PlasmaTileDamped
AmrMomentumLagrangianSolver 
loadZeroBlock => load_zero_block
VlasovTile
Bpart
solveMesh => solve_mesh
CA_tile
Filter
declare_Tile => declare_tile
MomentumSolver 
Epart
Communication
PlasmaTile
Adapter3d 
PlasmaBlock
VeloMesh
PlasmaMomentLattice
ParticleBlock
getYee => get_yee
YeeLattice
AdaptiveMesh