Skip to content

Enhancement/solver class #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a6e14b6
First commit. Trying to make solver a callable class
Alberto-o Jul 4, 2025
da274d6
Behold! I am the master compiler!!!
lmdiazangulo Jul 4, 2025
19318e4
minor
Alberto-o Jul 4, 2025
4fb8368
Merge remote-tracking branch 'origin/enhancement/solver_class' into e…
Alberto-o Jul 4, 2025
14eaf04
Fixes CMakeLists
Alberto-o Jul 4, 2025
3842522
[WIP] Reactoring semba_fdtd to use it as a class
Alberto-o Jul 4, 2025
f881e8f
[WIP] Makes entrada_t part of the solver class
Alberto-o Jul 4, 2025
24a1203
checkpoint
Alberto-o Jul 7, 2025
515a693
Merge remote-tracking branch 'origin/dev' into enhancement/solver_class
Alberto-o Jul 7, 2025
cf73a83
semba a as class and init/launch/end methods
Alberto-o Jul 7, 2025
041fc13
Missing deletes files
Alberto-o Jul 7, 2025
45f76d0
Makes fields part of the solver in timeStepping
Alberto-o Jul 8, 2025
581dc19
Refactors some code into updateSigmaM and updateThinwiresSigma
Alberto-o Jul 8, 2025
40d8c5f
Some code into small subroutine revertThinWiresSigma
Alberto-o Jul 8, 2025
a0d2119
Adds reportSimulationOptions for option printing
Alberto-o Jul 8, 2025
d8932e0
removes unused variables
Alberto-o Jul 8, 2025
4871b4e
Many functions wrapping code with a clear goal
Alberto-o Jul 8, 2025
eb10c6c
[WIP] major reorganization of timestepping incoming
Alberto-o Jul 8, 2025
cb1f33a
[WIP] implementing solver init, run and end
Alberto-o Jul 8, 2025
9d2ada9
[WIP] Reorganizing timestepping
Alberto-o Jul 8, 2025
d3e243a
[WIP] finished solver_run in timestepping. Missing solver_end
Alberto-o Jul 9, 2025
14ab48c
[WIP] large refactoring of timestepping
Alberto-o Jul 9, 2025
74d2135
Timestepping now have init run and end methods part of class. Next is…
Alberto-o Jul 9, 2025
19d1a3f
minor
Alberto-o Jul 9, 2025
727b02e
Minor changes for windows compilation
Alberto-o Jul 9, 2025
b894087
Minor
Alberto-o Jul 10, 2025
ad2c96d
minor change
Alberto-o Jul 11, 2025
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
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ endif()

if(SEMBA_FDTD_MAIN_LIB)
add_library(semba-main
"src_main_pub/semba_fdtd.F90"
"src_main_pub/calc_constants.F90"
"src_main_pub/nfde_rotate.F90"
"src_main_pub/EpsMuTimeScale.F90"
Expand All @@ -262,13 +263,14 @@ endif()

if (SEMBA_FDTD_EXECUTABLE)
add_executable(semba-fdtd
"src_main_pub/semba_fdtd.F90"
"src_main_pub/launcher.F90"
)
target_link_libraries(semba-fdtd semba-main semba-reports)
target_link_libraries(semba-fdtd ${MPI_Fortran_LIBRARIES})
endif()



include_directories(${CMAKE_BINARY_DIR}/mod)
include_directories(${HDF5_INCLUDE_DIRS})
include_directories(${FHASH_INCLUDES})
12 changes: 7 additions & 5 deletions src_main_pub/fdetypes.F90
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,13 @@ module FDETYPES
permitscaling,mtlnberenger,niapapostprocess, &
stochastic, verbose, dontwritevtk, &
use_mtln_wires, resume_fromold, vtkindex,createh5bin,wirecrank,fatalerror

! REAL (kind=8) :: time_desdelanzamiento
REAL (kind=rkind) :: cfl, attfactorc,attfactorw, alphamaxpar, &
alphaOrden, kappamaxpar, mindistwires,sgbcFreq,sgbcresol
real (kind=rkind_wires) :: factorradius,factordelta !maxSourceValue
#ifdef CompileWithConformal
logical :: input_conformal_flag
#endif
REAL (kind=8) :: time_desdelanzamiento
REAL (kind=RKIND) :: cfl, attfactorc,attfactorw, alphamaxpar, &
alphaOrden, kappamaxpar, mindistwires,sgbcFreq,sgbcresol, maxSourceValue
real (kind=rkind_wires) :: factorradius,factordelta

character (len=BUFSIZE) :: nEntradaRoot, inductance_model,wiresflavor, nresumeable2
CHARACTER (LEN=BUFSIZE) :: opcionestotales, ficherohopf
Expand Down
4 changes: 3 additions & 1 deletion src_main_pub/interpreta_switches.F90
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ module interpreta_switches_m
noconformalmapvtk , &
createh5filefromsinglebin , &
creditosyaprinteados , &
use_mtln_wires
use_mtln_wires , &
read_command_line

integer (kind=4) :: &
wirethickness ,&
Expand Down Expand Up @@ -2028,6 +2029,7 @@ subroutine default_flags(l)
l%facesNF2FF%ar=.true.
!defaults
l%use_mtln_wires = .false.
l%read_command_line = .true.
l%hay_slanted_wires=.false.
l%forcing = .FALSE.
l%resume_fromold = .FALSE.
Expand Down
14 changes: 14 additions & 0 deletions src_main_pub/launcher.F90
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
program SEMBA_FDTD_launcher
use SEMBA_FDTD_mod
implicit none

type(semba_fdtd_t) :: semba

call semba%init()
call semba%launch()
call semba%end()


end program SEMBA_FDTD_launcher


Loading
Loading