The next article will show how to design the Alternating Direction Explicit (ADE) method in C++11 for the Anchoring problem with Alan and Paul (WLD2014):http://onlinelibrary.wiley.com/doi/10.1 ... 10366/epdf
.. The focus is on applying the author’s system decomposition techniques (Duffy 2004) in combination with the new features in C++11 to produce a customisable software framework that first reproduces the numerical results in WLD 2014 and that can be extended to other kinds of PDEs and finite difference schemes. We realise a certain level of flexibility in the new framework due to the following features:
. Each subsystem has a single major responsibility and it has well-defined and narrow interfaces. Complex mathematical operations are hidden behind these interfaces.. We model PDEs as compositions of universal function wrappers based on the functional programming model. In this way we avoid code bloat and proliferation of classes that arise when creating traditional class hierarchies based on subtype polymorphism or the Curiously Recurring Template Pattern (CRTP).. We begin with the C++ code that we used to implement the Alternating Direction Explicit (ADE) in WLD 2014 and we port it to code that fits into the software framework.. Lambda functions are very in helping reduce code bloat, especially when configuring the application. In particular, their use promotes code readability and maintainability...