Coverage for pySDC/implementations/transfer_classes/TransferMesh_NoCoarse.py: 100%
6 statements
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-02 12:30 +0000
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-02 12:30 +0000
1from pySDC.core.space_transfer import SpaceTransfer
4class mesh_to_mesh(SpaceTransfer):
5 """
6 Identity space transfer for levels on the same mesh, copying the data in both directions.
8 This implementation is for identical fine and coarse meshes: both directions just copy the data.
9 """
11 def restrict(self, F):
12 """
13 Restriction implementation
15 Args:
16 F: the fine level data (easier to access than via the fine attribute)
17 """
18 return type(F)(F)
20 def prolong(self, G):
21 """
22 Prolongation implementation
24 Args:
25 G: the coarse level data (easier to access than via the coarse attribute)
26 """
27 return type(G)(G)