14 if (verbose > 2)
Chi::log.
Log() <<
"\nUpdating Thermal fluxes from two-grid";
20 const double *xlocal_tg;
24 for (
const auto& cell : grid.local_cells)
26 const auto& cell_mapping = sdm.GetCellMapping(cell);
27 const size_t num_nodes = cell_mapping.NumNodes();
32 for (
size_t i=0; i<num_nodes; ++i)
34 const int64_t imap = sdm.MapDOFLocal(cell, i);
35 const int64_t imap_globl = sdm.MapDOF(cell, i);
36 const double aux = xlocal_tg[imap] *
VF_[counter][i] * xstg.spectrum[g];
37 VecSetValue(
x_[g], imap_globl, aux, ADD_VALUES);
46 VecAssemblyBegin(
x_[g]);
47 VecAssemblyEnd(
x_[g]);
LogStream Log(LOG_LVL level=LOG_0)
void Update_Flux_With_TwoGrid(int64_t iverbose)
std::vector< std::vector< double > > VF_
std::map< int, TwoGridCollapsedInfo > map_mat_id_2_tginfo
chi_mesh::MeshContinuumPtr grid_ptr_
chi_math::SDMPtr sdm_ptr_