zoomy_core.transformation.to_amrex module#
Module zoomy_core.transformation.to_amrex.
- class zoomy_core.transformation.to_amrex.AmrexCore(*args, **kwargs)#
Bases:
objectProvides all AMReX-specific syntax rules, data types, and macros. Designed to be mixed in with GenericCppModel or GenericCppNumerics.
- doprint(expr, **settings)#
Doprint.
- get_includes()#
Get includes.
- get_simple_array_def()#
Get simple array def.
- get_array_type(shape)#
Hook to use amrex::SmallMatrix natively for all mathematical arrays.
- get_array_declaration(target_name, shape, init_zero=False)#
Hook to declare amrex::SmallMatrix variables correctly.
- format_accessor(var_name, index)#
Format accessor.
- format_assignment(target_name, indices, value, shape)#
Format assignment.
- format_array_initialization(sym_name, elements)#
Initializes an amrex::SmallMatrix instead of a raw C-array.
- wrap_function_signature(name, args_str, body_str, shape)#
Overrides the generated function wrapper to include AMReX specific macros.
- class zoomy_core.transformation.to_amrex.AmrexModel(*args, **kwargs)#
Bases:
AmrexCore,GenericCppModelGenerates an AMReX compatible Model.H file natively using amrex::SmallMatrix.
- get_file_header()#
Get file header.
- get_bc_args()#
Get bc args.
- class zoomy_core.transformation.to_amrex.AmrexNumerics(numerics, *args, **kwargs)#
Bases:
AmrexCore,GenericCppNumericsGenerates an AMReX compatible Numerics.H file natively using amrex::SmallMatrix.
- get_file_header()#
Get file header.