3#ifndef DUNE_PDELAB_LOCALOPERATOR_PATTERN_HH
4#define DUNE_PDELAB_LOCALOPERATOR_PATTERN_HH
18 template<
typename LFSU,
typename LFSV,
typename LocalPattern>
19 void pattern_volume (
const LFSU& lfsu,
const LFSV& lfsv,
20 LocalPattern& pattern)
const
22 for (
size_t i=0; i<lfsv.size(); ++i)
23 for (
size_t j=0; j<lfsu.size(); ++j)
24 pattern.addLink(lfsv,i,lfsu,j);
34 template<
typename LFSU,
typename LFSV,
typename LocalPattern>
35 void pattern_skeleton (
const LFSU& lfsu_s,
const LFSV& lfsv_s,
const LFSU& lfsu_n,
const LFSV& lfsv_n,
36 LocalPattern& pattern_sn,
37 LocalPattern& pattern_ns)
const
39 for (
unsigned int i=0; i<lfsv_s.size(); ++i)
40 for (
unsigned int j=0; j<lfsu_n.size(); ++j)
41 pattern_sn.addLink(lfsv_s,i,lfsu_n,j);
43 for (
unsigned int i=0; i<lfsv_n.size(); ++i)
44 for (
unsigned int j=0; j<lfsu_s.size(); ++j)
45 pattern_ns.addLink(lfsv_n,i,lfsu_s,j);
55 template<
typename LFSU,
typename LFSV,
typename LocalPattern>
56 void pattern_boundary(
const LFSU& lfsu_s,
const LFSV& lfsv_s,
57 LocalPattern& pattern_ss)
const
59 for (
unsigned int i=0; i<lfsv_s.size(); ++i)
60 for (
unsigned int j=0; j<lfsu_s.size(); ++j)
61 pattern_ss.addLink(lfsv_s,i,lfsu_s,j);
sparsity pattern generator
Definition: pattern.hh:51
sparsity pattern generator
Definition: pattern.hh:30
sparsity pattern generator
Definition: pattern.hh:14
A few common exception classes.
Implements a vector constructed from a given type representing a field and a compile-time given size.
Dune namespace.
Definition: alignedallocator.hh:11