Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,16 @@ macro(HANDLE_FYPP target)

set(f90_filepath "${f90_dirpath}/autogen/${f90_filename}")

set(depends_on "${fpp_filepath}")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp")
list(APPEND depends_on "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp")
endif()

add_custom_command(
OUTPUT "${f90_filepath}"
COMMAND "${FYPP_EXE}" "${fpp_filepath}" "${f90_filepath}"
DEPENDS "${fpp_filepath}" "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp"
COMMENT "Preprocessing ${fpp_filename}"
DEPENDS "${depends_on}"
COMMENT "Preprocessing (Fypp) ${fpp_filename}"
VERBATIM
)

Expand Down

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions src/post_process/m_global_parameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@ module m_global_parameters
real(kind(0d0)) :: poly_sigma
!> @}

!> @name Index variables used for m_variables_conversion
!> @{
integer :: momxb, momxe
integer :: advxb, advxe
integer :: contxb, contxe
integer :: intxb, intxe
integer :: bubxb, bubxe
integer :: strxb, strxe
!> @}

! Mathematical and Physical Constants ======================================
real(kind(0d0)), parameter :: pi = 3.141592653589793d0
! ==========================================================================
Expand Down Expand Up @@ -516,6 +526,19 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
end if
end if
end if

momxb = mom_idx%beg
momxe = mom_idx%end
advxb = adv_idx%beg
advxe = adv_idx%end
contxb = cont_idx%beg
contxe = cont_idx%end
bubxb = bub_idx%beg
bubxe = bub_idx%end
strxb = stress_idx%beg
strxe = stress_idx%end
intxb = internalEnergies_idx%beg
intxe = internalEnergies_idx%end
! ==================================================================

#ifdef MFC_MPI
Expand Down
Loading