2D AMRCLAW
|
Go to the source code of this file.
Functions/Subroutines | |
integer function | nodget () |
Get first free node of the linked list kept in node array. More... | |
integer function | nodget_bnd () |
subroutine | makegridlist (lbase) |
Make (modify) array of grid numbers, listOfGrids, (after sorting them in the linked list so they are in decreasing order of workload, done in arrangeGrid()). More... | |
subroutine | initbndrylist () |
subroutine | makebndrylist (level) |
Preprocess each grid on level level to have a linked list of other grids at the same level that supply ghost cells. More... | |
subroutine | freebndrylist (mold) |
Free the linked list of intersecting "boundary" grids for grid 'mold' that is no longer active. More... | |
subroutine freebndrylist | ( | integer | mold | ) |
Free the linked list of intersecting "boundary" grids for grid 'mold' that is no longer active.
The linked list starts at node(bndListSt, mold).
Definition at line 247 of file nodget.f.
References amr_module::bndlist, amr_module::bndlistnum, amr_module::bndlistst, amr_module::nextfree, amr_module::node, and putnod_bnd().
Referenced by gfixup().
subroutine initbndrylist | ( | ) |
Definition at line 148 of file nodget.f.
References amr_module::bndlist, amr_module::bndlistsize, amr_module::ndfree_bnd, amr_module::nextfree, and amr_module::null.
Referenced by restrt(), and stst1().
subroutine makebndrylist | ( | integer | level | ) |
Preprocess each grid on level level to have a linked list of other grids at the same level that supply ghost cells.
The linked list is implemented with an array. Each node in this linked list is represented by a row (with 2 elements) in the array, named bndList.
bndList(pos,gridNbor) is grid number stored at node pos bndList(pos,nextfree) is pointer to next node in the linked list
node(bndListSt,mptr) point to the head node in this linked list. Thus bndList(node(bndListSt,mptr),gridNbor) is grid number stored at first node of the linked list.
Definition at line 183 of file nodget.f.
References amr_module::bndlist, amr_module::bndlistnum, amr_module::bndlistst, amr_module::gridnbor, amr_module::listofgrids, amr_module::liststart, amr_module::ndihi, amr_module::ndilo, amr_module::ndjhi, amr_module::ndjlo, amr_module::nextfree, amr_module::nghost, amr_module::node, and amr_module::numgrids.
Referenced by domain(), regrid(), restrt(), and setgrd().
subroutine makegridlist | ( | integer | lbase | ) |
Make (modify) array of grid numbers, listOfGrids, (after sorting them in the linked list so they are in decreasing order of workload, done in arrangeGrid()).
This is done every time there is regridding, initial gridding, or restarting. Most often finest level is regridded, so put it last in array. lbase is the level that didnt change, so only redo from lbase+1 to lfine.
[in] | lbase | all levels from lbase+1 to the finest get modifed in the array, listOfGrids |
Definition at line 109 of file nodget.f.
References amr_module::levelptr, amr_module::lfine, amr_module::listofgrids, amr_module::liststart, amr_module::lstart, amr_module::node, and amr_module::numgrids.
Referenced by domain(), regrid(), restrt(), and setgrd().
integer function nodget | ( | ) |
Get first free node of the linked list kept in node array.
adjust pointers accordingly.
This function is used to create a new grid descriptor, like mptr = new grid_class in c++.
Definition at line 11 of file nodget.f.
References amr_module::lfine, amr_module::maxgr, amr_module::ndfree, amr_module::nextfree, amr_module::node, amr_module::nsize, amr_module::null, amr_module::numgrids, amr_module::outunit, amr_module::rnode, and amr_module::rsize.
Referenced by birect(), domain(), and grdfit().
integer function nodget_bnd | ( | ) |
Definition at line 54 of file nodget.f.
References amr_module::bndlist, amr_module::bndlistnum, amr_module::bndlistsize, amr_module::lfine, amr_module::ndfree_bnd, amr_module::nextfree, amr_module::node, amr_module::null, amr_module::numgrids, and amr_module::outunit.