📄 epetrafactory.cpp
字号:
// Copyright (C) 2008 Martin Sandve Alnes, Kent-Andre Mardal and Johannes Ring.// Licensed under the GNU LGPL Version 2.1.//// First added: 2008-04-21#ifdef HAS_TRILINOS#include "EpetraSparsityPattern.h"#include "EpetraMatrix.h"#include "EpetraVector.h"#include "EpetraFactory.h"#include <Epetra_SerialComm.h>using namespace dolfin;//-----------------------------------------------------------------------------EpetraFactory:: EpetraFactory() { comm = new Epetra_SerialComm(); }//-----------------------------------------------------------------------------EpetraMatrix* EpetraFactory::createMatrix() const { return new EpetraMatrix();}//-----------------------------------------------------------------------------EpetraSparsityPattern* EpetraFactory::createPattern() const { return new EpetraSparsityPattern(); }//-----------------------------------------------------------------------------EpetraVector* EpetraFactory::createVector() const { return new EpetraVector(); }//-----------------------------------------------------------------------------Epetra_SerialComm& EpetraFactory::getSerialComm(){ return *comm;};//-----------------------------------------------------------------------------// Singleton instanceEpetraFactory EpetraFactory::factory;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -