From 1eb5f76fac794ddae2fa3bd8798a7d9ff859e632 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Mon, 12 Nov 2018 10:10:10 +0100 Subject: [PATCH] Assembler vector of transfer operators directly --- 1bcontact.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/1bcontact.cc b/1bcontact.cc index 4a1962ec..e7308c6f 100644 --- a/1bcontact.cc +++ b/1bcontact.cc @@ -245,11 +245,7 @@ int main (int argc, char *argv[]) try // Create the transfer operators std::vector<ContactMGTransfer<VectorType> > mgTransfers(toplevel); - std::vector<ContactMGTransfer<VectorType>* > mgTransfersPtr(toplevel); - for (size_t i=0; i<mgTransfers.size(); i++) - mgTransfersPtr[i] = &mgTransfers[i]; - ContactTransferOperatorAssembler<VectorType,GridType>::assembleOperatorHierarchy(contactAssembler, mgTransfersPtr); - + ContactTransferOperatorAssembler<VectorType,GridType>::assembleOperatorHierarchy(contactAssembler, mgTransfers); multigridStep.setTransferOperators(mgTransfers); -- GitLab