NREL / SOWFA

Other
131 stars 113 forks source link

Make meshPlanes initialization callable #53

Closed DriesAllaerts closed 4 years ago

DriesAllaerts commented 5 years ago

Add initialize function to meshPlanes instead of initializing upon construction. This way, meshPlanes is not initialized by default but only if the classes depending on it actually need it. DrivingForce no longer initializes meshPlanes when the force is given at a single height, avoiding time-consuming and unnecessary initialization in complex terrain cases using a given height-independent pressure gradient.

Note that this pull request includes 34 commits because the previous pull request was not accepted but instead the files were added manually. The actual changes in this pull request only include one commit affecting 4 files