Skip to content

Commit

Permalink
Merge branch 'main' into msl/add-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
simonechiocchetti committed Jan 26, 2024
2 parents 00b787b + 535f6cb commit a834beb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ add_executable(smesh_run
)
target_link_libraries(smesh_run PRIVATE smesh smesh_io)


# Set appropriate compile flags
# Note: Require Fortran 2018 standard due to use of C interoperability functionality
target_compile_options(smesh PUBLIC "-fPIC")
target_compile_options(smesh_io PUBLIC "-fPIC")
target_compile_options(smesh PRIVATE -Wall -Wextra -Werror -std=f2018)
target_compile_options(smesh_io PRIVATE -Wall -Wextra -Werror -std=f2018)
target_compile_options(smesh_run PRIVATE -Wall -Wextra -Werror -std=f2018)

install(TARGETS smesh smesh_io smesh_run)

# Handle code coverage generation
Expand Down
2 changes: 1 addition & 1 deletion src/smesh.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ PURE SUBROUTINE compute_unique_edges_voronoi(edge, edge_elements, ve, veb, ne)
INTEGER, DIMENSION(:,:), ALLOCATABLE, INTENT(OUT) :: edge_elements
INTEGER, DIMENSION(:,:), ALLOCATABLE :: edge_elements_temp
INTEGER :: nelem, i, n1, j1, i1, nedge, k
INTEGER, PARAMETER, DIMENSION(2,3) :: ed = reshape([2,3,3,1,1,2], [2,3]) ! mod(i+j, 3)
! INTEGER, PARAMETER, DIMENSION(2,3) :: ed = reshape([2,3,3,1,1,2], [2,3]) ! mod(i+j, 3)
INTEGER, DIMENSION(2) :: edge1, edge2
nelem = size(veb, 2)
ALLOCATE(edge_found_marker(size(ve)))
Expand Down

0 comments on commit a834beb

Please sign in to comment.