NREL / SOWFA

Other
136 stars 113 forks source link

makeNewWorkingDir does not copy files to right path #4

Closed w1th0utnam3 closed 6 years ago

w1th0utnam3 commented 8 years ago

The make files expect the contents of the SOWFA repository inside of $WM_PROJECT_USER_DIR (example: SOWFA/applications/solvers/incompressible/windEnergy/windPlantSolver/2.3-and-higher/options, line 9). Nevertheless the SOWFA/makeNewWorkingDir script (as well as snippet from the webinar pdf on the NREL SOWFA project page) creates a copy of the SOWFA folder itself (not just of its contents) in the OpenFOAM user directory. This results in compilation errors due to missing include files. Line 20 in SOWFA/makeNewWorkingDir: cp -rs $SOWFAdir $WM_PROJECT_USER_DIR should be cp -rs $SOWFAdir/* $WM_PROJECT_USER_DIR instead.