Skip to content

Commit

Permalink
Merge pull request #7 from nikhar-abbas/usflowt
Browse files Browse the repository at this point in the history
Minor compilation bug fixes
  • Loading branch information
mattEhall authored Jan 13, 2022
2 parents 699cd8a + e3afd54 commit 6512013
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/hydrodyn/src/Waves.f90
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MODULE Waves

IMPLICIT NONE

PRIVATE
PUBLIC

TYPE(ProgDesc), PARAMETER :: Waves_ProgDesc = ProgDesc( 'Waves', '', '' )

Expand Down
2 changes: 1 addition & 1 deletion modules/moordyn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(MOORDYN_LIBS_SOURCES
)

add_library(moordynlib ${MOORDYN_LIBS_SOURCES})
target_link_libraries(moordynlib nwtclibs)
target_link_libraries(moordynlib hydrodynlib nwtclibs)

install(TARGETS moordynlib
EXPORT "${CMAKE_PROJECT_NAME}Libraries"
Expand Down
4 changes: 2 additions & 2 deletions modules/moordyn/src/MoorDyn.f90
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MODULE MoorDyn
USE MoorDyn_IO
USE NWTC_Library

USE WAVES, only: WaveGrid_n, WaveGrid_x0, WaveGrid_dx, WaveGrid_nx, WaveGrid_y0, WaveGrid_dy, WaveGrid_ny, WaveGrid_nz ! seeing if I can get waves data here directly...
USE Waves, ONLY : WaveGrid_n, WaveGrid_x0, WaveGrid_dx, WaveGrid_nx, WaveGrid_y0, WaveGrid_dy, WaveGrid_ny, WaveGrid_nz ! seeing if I can get waves data here directly...

IMPLICIT NONE

Expand Down Expand Up @@ -6994,7 +6994,7 @@ SUBROUTINE ScaleVector( u_in, newlength, u_out )
if (length_squared > 0) then
scaler = newlength/sqrt(length_squared)
else ! if original vector is zero, return zero
scaler = 0_DbKi
scaler = 0.0_DbKi
end if

DO J=1,3
Expand Down

0 comments on commit 6512013

Please sign in to comment.