comp_amr_error.f
A file with the name "comp_amr_error.f" is required in each user-developed
application. It is copied into the "had/src/amr" directory and used
by the AMR driver when compiling. The "comp_amr_error.f" contains
five routines, supplied by the user:
- comp_amr_error( gridnum )
integer gridnum
- grid_ahfind( gridnum )
integer gridnum
- grid_asurface_comp(gridnum, x,y,z, itheta, jphi)
integer gridnum,itheta,jphi
real(kind=8) x,y,z
- grid_bsurface_comp(gridnum, x,y,z, itheta, jphi)
integer gridnum,itheta,jphi
real(kind=8) x,y,z
- grid_csurface_comp(gridnum, x,y,z, itheta, jphi)
integer gridnum,itheta,jphi
real(kind=8) x,y,z
The last three routines and their purpose are explained in
the surface extraction
documentation.
The apparent horizon finding utilities and routines are described in
horizon manpage
The routine comp_amr_error can be used to specify a user-defined
refinement criteria. If the shadow hierarchy
is being used, this routine can be left empty. To create a user-defined
refinement criteria, the pointers to all gridfunctions are passed to
the comp_amr_error routine. The error gridfunction ( "gr_error" ) is initialized
according to the user implemented criteria. Points in the error grid with
values larger than the user specified
error threshold parameter are flagged for refinement.
The comp_amr_error routine is called
every refine period.
Notes
- Routines in comp_amr_error.f need to be in F77.
See Also
shadow hierarchy,
surface extraction,
horizon finder,
List of required routines
Index of all manual pages
Examples
had/scr/hyperCurvedWave/comp_amr_error.f