Skip to content

Commit

Permalink
Removes CompileWithXDMF
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Nov 9, 2024
1 parent bca8dbb commit b86c8b9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ add_definitions(
-DCompileWithDMMA
-DCompileWithSGBC
-DCompileWithWires
-DCompileWithXDMF
)


4 changes: 0 additions & 4 deletions src_main_pub/errorreport.F90
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
Module Report
use FDETYPES

#ifdef CompileWithXDMF
use snapxdmf
#endif

implicit none
private
Expand Down Expand Up @@ -1160,7 +1158,6 @@ subroutine Timing(sgg, b, n, n_info, layoutnumber, size, maxCPUtime,flushseconds
call MPI_Barrier(MPI_COMM_WORLD,ierr)
#endif

#ifdef CompileWithXDMF
if ((mustsnap.and.(lmaxval (layoutnumber+1)> snapLevel)).or.(countersnap > 0)) then
countersnap=countersnap + 1
!
Expand Down Expand Up @@ -1264,7 +1261,6 @@ subroutine Timing(sgg, b, n, n_info, layoutnumber, size, maxCPUtime,flushseconds
countersnap=0
endif
endif
#endif

#ifdef CompileWithMPI
call MPI_Barrier(MPI_COMM_WORLD,ierr) !TODOS STOCH O NO 060619
Expand Down
5 changes: 0 additions & 5 deletions src_main_pub/semba_fdtd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ PROGRAM SEMBA_FDTD_launcher

USE Preprocess_m
USE storeData

#ifdef CompileWithXDMF
USE xdmf_h5
#endif
!
#ifdef CompileWithMPI
USE MPIcomm
Expand Down Expand Up @@ -394,7 +391,6 @@ PROGRAM SEMBA_FDTD_launcher
end if
#endif

#ifdef CompileWithXDMF
#ifdef CompileWithHDF
!!!!tunel a lo bestia para crear el .h5 a 021219
if (l%createh5filefromsinglebin) then
Expand All @@ -418,7 +414,6 @@ PROGRAM SEMBA_FDTD_launcher
#endif
stop
endif
#endif
#endif

IF (status /= 0) then
Expand Down
8 changes: 2 additions & 6 deletions src_main_pub/timestepping.F90
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ module Solver
use nodalsources
use Lumped
use PMLbodies
#ifdef CompileWithXDMF
use xdmf
#endif
use vtk
#ifdef CompileWithMPI
use MPIcomm
Expand Down Expand Up @@ -1957,10 +1955,10 @@ subroutine launch_simulation(sgg,sggMtag,sggMiNo,sggMiEx,sggMiEy,sggMiEz,sggMiHx
call print11(layoutnumber,dubuf)
call print11(layoutnumber,SEPARADOR//separador//separador)
somethingdone=.false.
#ifdef CompileWithXDMF

if (Thereare%Observation) call createxdmfOnTheFly(sgg,layoutnumber,size,vtkindex,createh5bin,somethingdone,mpidir)
if (createh5bin) call createh5bintxt(sgg,layoutnumber,size) !lo deben llamar todos haya on on thereare%observation
#endif

#ifdef CompileWithMPI
call MPI_Barrier(SUBCOMM_MPI,ierr)
call MPI_AllReduce( somethingdone, newsomethingdone, 1_4, MPI_LOGICAL, MPI_LOR, SUBCOMM_MPI, ierr)
Expand Down Expand Up @@ -2177,11 +2175,9 @@ subroutine launch_simulation(sgg,sggMtag,sggMiNo,sggMiEx,sggMiEy,sggMiEz,sggMiHx
write(dubuf,*) SEPARADOR//separador//separador
call print11(layoutnumber,dubuf)
somethingdone=.false.
#ifdef CompileWithXDMF
if (Thereare%Observation) call createxdmf(sgg,layoutnumber,size,vtkindex,createh5bin,somethingdone,mpidir)
if (createh5bin) call createh5bintxt(sgg,layoutnumber,size) !lo deben llamar todos haya o no thereare%observation
! call create_interpreted_mesh(sgg)
#endif
#ifdef CompileWithMPI
call MPI_Barrier(SUBCOMM_MPI,ierr)
call MPI_AllReduce( somethingdone, newsomethingdone, 1_4, MPI_LOGICAL, MPI_LOR, SUBCOMM_MPI, ierr)
Expand Down
2 changes: 0 additions & 2 deletions src_main_pub/xdmf.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
MODULE xdmf
!
#ifdef CompileWithXDMF
USE fdetypes
USE Observa
use report
Expand Down Expand Up @@ -575,7 +574,6 @@ SUBROUTINE createxdmfOnTheFly (sgg,layoutnumber,size,vtkindex,createh5bin,someth

RETURN
END SUBROUTINE createxdmfOnTheFly
#endif
END MODULE xdmf
!
!

0 comments on commit b86c8b9

Please sign in to comment.