Commit 371a90aa authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[examples] write out default template arguments

This failed to compile using clang.
parent b0edc9c8
......@@ -60,7 +60,7 @@ orientation are defined in this example as follows:
// less than 30°. Moreover, if they intersect, we don't want intersection
// edges whose length is smaller than 5cm, and, the intersection should not
// be too close to the boundary of one of two intersecting quadrilaterals. Here: 5cm.
EntityNetworkConstraints constraintsOnSelf;
EntityNetworkConstraints<ctype> constraintsOnSelf;
constraintsOnSelf.setMinDistance(0.05);
constraintsOnSelf.setMinIntersectingAngle(toRadians(30.0));
constraintsOnSelf.setMinIntersectionMagnitude(0.05);
......@@ -97,7 +97,7 @@ After the desired number of entities has been generated, the entities are cast
into an entity network using the builder class:
```cpp
EntityNetworkBuilder builder;
EntityNetworkBuilder<ctype> builder;
builder.addEntities(entitySet1);
builder.addEntities(entitySet2);
......
......@@ -64,7 +64,7 @@ int main()
// less than 30°. Moreover, if they intersect, we don't want intersection
// edges whose length is smaller than 5cm, and, the intersection should not
// be too close to the boundary of one of two intersecting quadrilaterals. Here: 5cm.
EntityNetworkConstraints constraintsOnSelf;
EntityNetworkConstraints<ctype> constraintsOnSelf;
constraintsOnSelf.setMinDistance(0.05);
constraintsOnSelf.setMinIntersectingAngle(toRadians(30.0));
constraintsOnSelf.setMinIntersectionMagnitude(0.05);
......@@ -122,7 +122,7 @@ int main()
std::cout << "\n --- Finished entity sampling ---\n" << std::endl;
// We can now create an entity network from the two sets
EntityNetworkBuilder builder;
EntityNetworkBuilder<ctype> builder;
builder.addEntities(entitySet1);
builder.addEntities(entitySet2);
......
......@@ -101,7 +101,7 @@ Finally, after the desired number of entities has been created, we cast the enti
into an instance of the class `ContainedEntityNetwork`, using the corresponding builder class:
```cpp
ContainedEntityNetworkBuilder builder;
ContainedEntityNetworkBuilder<ctype> builder;
// define the domain (single sub-domain) and give it a unique id
builder.addConfiningSubDomain(domain, Id(1));
......
......@@ -52,7 +52,7 @@ int main()
Distro(0.5, 0.1),
0.05);
EntityNetworkConstraints constraintsOnSelf;
EntityNetworkConstraints<ctype> constraintsOnSelf;
constraintsOnSelf.setMinDistance(0.05);
constraintsOnSelf.setMinIntersectingAngle(toRadians(30.0));
constraintsOnSelf.setMinIntersectionMagnitude(0.05);
......@@ -116,7 +116,7 @@ int main()
// We can now create a contained entity network from the two sets,
// which has information on both the entities and the domain.
ContainedEntityNetworkBuilder builder;
ContainedEntityNetworkBuilder<ctype> builder;
// define the domain (single sub-domain) and give it a unique id
builder.addConfiningSubDomain(domain, Id(1));
......
......@@ -187,7 +187,7 @@ file format. In a first step, we create an instance of the network builder
class for contained networks and define the sub-domains:
```cpp
ContainedEntityNetworkBuilder builder;
ContainedEntityNetworkBuilder<ctype> builder;
// add sub-domains
builder.addConfiningSubDomain(solids[0], Id(1));
......@@ -200,7 +200,6 @@ the entity network. Using the convenience function available in the `MultiGeomet
class, we can add all entities to the builder by writing
```cpp
ContainedEntityNetworkBuilder builder;
entitySets.exportEntitySets(builder, Id(2));
```
......@@ -210,7 +209,6 @@ associated with multiple (sub-)domains, or, if only some of the entity sets shou
be added to the builder, one can use:
```cpp
ContainedEntityNetworkBuilder builder;
entitySets.exportEntitySets({diskSetId, quadSetId}, builder, Id(2));
```
......
......@@ -211,7 +211,7 @@ int main(int argc, char** argv)
// construct and write a contained network, i.e. write out both network and domain.
std::cout << "Building and writing contained, confined network" << std::endl;
ContainedEntityNetworkBuilder builder;
ContainedEntityNetworkBuilder<ctype> builder;
// add sub-domains
builder.addConfiningSubDomain(solids[0], Id(1));
......@@ -248,7 +248,7 @@ int main(int argc, char** argv)
// We could also only write out the network, without the domain
// For example, confining the network to the sub-domain...
std::cout << "Building and writing uncontained, confined network" << std::endl;
EntityNetworkBuilder uncontainedBuilder;
EntityNetworkBuilder<ctype> uncontainedBuilder;
uncontainedBuilder.addConfiningSubDomain(networkDomain, Id(2));
entitySets.exportEntitySets(uncontainedBuilder, Id(2));
gmshWriter = GmshWriter(uncontainedBuilder.build());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment