preCICE
v3.1.2
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
f
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
com
MPIPortsCommunicationFactory.cpp
Go to the documentation of this file.
1
#ifndef PRECICE_NO_MPI
2
3
#include "
MPIPortsCommunicationFactory.hpp
"
4
#include <
memory
>
5
#include <
utility
>
6
7
#include "
MPIPortsCommunication.hpp
"
8
#include "
com/SharedPointer.hpp
"
9
10
namespace
precice::com
{
11
MPIPortsCommunicationFactory::MPIPortsCommunicationFactory
(
std::string
addressDirectory)
12
: _addressDirectory(
std
::move(addressDirectory))
13
{
14
if
(
_addressDirectory
.
empty
()) {
15
_addressDirectory
=
"."
;
16
}
17
}
11
MPIPortsCommunicationFactory::MPIPortsCommunicationFactory
(
std::string
addressDirectory) {
…
}
18
19
PtrCommunication
MPIPortsCommunicationFactory::newCommunication
()
20
{
21
return
std::make_shared<MPIPortsCommunication>(
_addressDirectory
);
22
}
19
PtrCommunication
MPIPortsCommunicationFactory::newCommunication
() {
…
}
23
24
std::string
MPIPortsCommunicationFactory::addressDirectory
()
25
{
26
return
_addressDirectory
;
27
}
24
std::string
MPIPortsCommunicationFactory::addressDirectory
() {
…
}
28
}
// namespace precice::com
29
30
#endif
// not PRECICE_NO_MPI
MPIPortsCommunicationFactory.hpp
MPIPortsCommunication.hpp
std::string
precice::com::MPIPortsCommunicationFactory::_addressDirectory
std::string _addressDirectory
Definition
MPIPortsCommunicationFactory.hpp:21
precice::com::MPIPortsCommunicationFactory::addressDirectory
std::string addressDirectory() override
Definition
MPIPortsCommunicationFactory.cpp:24
precice::com::MPIPortsCommunicationFactory::MPIPortsCommunicationFactory
MPIPortsCommunicationFactory(std::string addressDirectory=".")
Definition
MPIPortsCommunicationFactory.cpp:11
precice::com::MPIPortsCommunicationFactory::newCommunication
PtrCommunication newCommunication() override
Definition
MPIPortsCommunicationFactory.cpp:19
SharedPointer.hpp
std::string::empty
T empty(T... args)
memory
precice::com
contains the data communication abstraction layer.
Definition
Communication.cpp:12
std
STL namespace.
std::shared_ptr< Communication >
utility