Skip to content

Commit 83528f1

Browse files
authored
Merge pull request #39 from anshgupta1234/fix_13
2 parents ba86586 + 9afd287 commit 83528f1

13 files changed

+624
-1285
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,16 @@ macro(HANDLE_FYPP target)
168168

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

171+
set(depends_on "${fpp_filepath}")
172+
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp")
173+
list(APPEND depends_on "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp")
174+
endif()
175+
171176
add_custom_command(
172177
OUTPUT "${f90_filepath}"
173178
COMMAND "${FYPP_EXE}" "${fpp_filepath}" "${f90_filepath}"
174-
DEPENDS "${fpp_filepath}" "${CMAKE_CURRENT_SOURCE_DIR}/src/${target}/case.fpp"
175-
COMMENT "Preprocessing ${fpp_filename}"
179+
DEPENDS "${depends_on}"
180+
COMMENT "Preprocessing (Fypp) ${fpp_filename}"
176181
VERBATIM
177182
)
178183

src/simulation/m_variables_conversion.f90 renamed to src/common/m_variables_conversion.fpp

Lines changed: 548 additions & 248 deletions
Large diffs are not rendered by default.

src/post_process/m_global_parameters.f90

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,16 @@ module m_global_parameters
235235
real(kind(0d0)) :: poly_sigma
236236
!> @}
237237

238+
!> @name Index variables used for m_variables_conversion
239+
!> @{
240+
integer :: momxb, momxe
241+
integer :: advxb, advxe
242+
integer :: contxb, contxe
243+
integer :: intxb, intxe
244+
integer :: bubxb, bubxe
245+
integer :: strxb, strxe
246+
!> @}
247+
238248
! Mathematical and Physical Constants ======================================
239249
real(kind(0d0)), parameter :: pi = 3.141592653589793d0
240250
! ==========================================================================
@@ -516,6 +526,19 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
516526
end if
517527
end if
518528
end if
529+
530+
momxb = mom_idx%beg
531+
momxe = mom_idx%end
532+
advxb = adv_idx%beg
533+
advxe = adv_idx%end
534+
contxb = cont_idx%beg
535+
contxe = cont_idx%end
536+
bubxb = bub_idx%beg
537+
bubxe = bub_idx%end
538+
strxb = stress_idx%beg
539+
strxe = stress_idx%end
540+
intxb = internalEnergies_idx%beg
541+
intxe = internalEnergies_idx%end
519542
! ==================================================================
520543

521544
#ifdef MFC_MPI

0 commit comments

Comments
 (0)