Skip to content

Commit 6fb11ea

Browse files
authored
Merge pull request #130 from OpenSEMBA/dev
Dev
2 parents 12475bf + 94f579d commit 6fb11ea

File tree

8 files changed

+15
-57
lines changed

8 files changed

+15
-57
lines changed

.github/workflows/automatic-release-ubuntu-gnu.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
build-type: ["Release"]
15-
mpi: ["No"]
15+
mpi: ["Yes"]
1616
mtln: ["Yes"]
1717
hdf: ["Yes"]
1818

@@ -48,6 +48,10 @@ jobs:
4848
python -m pip install -r requirements.txt
4949
5050
- name: Run wrapper tests
51+
env:
52+
SEMBA_FDTD_ENABLE_MPI: ${{ matrix.mpi }}
53+
SEMBA_FDTD_ENABLE_MTLN: ${{ matrix.mtln }}
54+
SEMBA_FDTD_ENABLE_HDF: ${{ matrix.hdf }}
5155
run: |
5256
python -m pytest test
5357

.github/workflows/automatic-release-windows-intelLLVM.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
python -m pip install -r requirements.txt
5757
5858
- name: Run all wrapper tests (except codemodel)
59+
env:
60+
SEMBA_FDTD_ENABLE_MPI: ${{ matrix.mpi }}
61+
SEMBA_FDTD_ENABLE_MTLN: ${{ matrix.mtln }}
62+
SEMBA_FDTD_ENABLE_HDF: ${{ matrix.hdf }}
5963
run: python -m pytest -m 'not codemodel' test/
6064

6165
- name: Get current date

src_main_pub/fdetypes.F90

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,13 @@ module FDETYPES
6666
!y esto debe desaparecer
6767
integer(kind=4) :: SUBCOMM_MPI_conformal_probes,MPI_conformal_probes_root
6868
!!!
69-
70-
#if (defined MaxCores)
71-
integer(kind=4), parameter :: maxcores = MaxCores
72-
#else
73-
integer(kind=4), parameter :: maxcores = 2048
74-
#endif
75-
76-
7769
integer (kind=8), parameter :: maxmpibytes = 2**27
7870
integer (kind=4), parameter :: BuffObse=2**10 !Steps of the temporal buffer to store evolution data
7971
integer (kind=8), parameter :: MaxMemoryProbes=2_8**37_8 !128 Gb Maximum bytes of the buffer to store evolution data
8072
integer (kind=8), parameter :: MaxProbes=150000 !Maximum number of probes (a limit of 200000 is set with ulimit in Linux)
8173
!
8274
!
83-
INTEGER, parameter :: topCPUtime=10000000 !maximum cpu time in minutes !set to 690 in UGRGRID
75+
INTEGER, parameter :: topCPUtime=10000000 !maximum cpu time in minutes
8476
!size of character strings
8577
INTEGER, parameter :: BUFSIZE=1024
8678
INTEGER, parameter :: BUFSIZE_LONG=16384

src_main_pub/interpreta_switches.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ subroutine interpreta(l,statuse)
12201220
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12211221
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12221222
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1223-
if ((l%run)) then !el modo run crea el semaforo pause para permiter encolados salvajes en ugrgrid
1223+
if ((l%run)) then
12241224
#ifdef keeppause
12251225
!!!solo para el cluster
12261226
INQUIRE (file='running', EXIST=hayinput)

src_main_pub/observation.F90

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ subroutine InitObservation(sgg,sggMiEx,sggMiEy,sggMiEz,sggMiHx,sggMiHy,sggMiHz,s
170170
integer (kind=4) :: timesteps,klk,fqlength
171171
integer :: my_iostat
172172
!
173-
174-
if (size.gt.maxcores) then
175-
print *,'Maximum cores ',maxcores,' reached. to recompile'
176-
stop
177-
endif
178173
eps0=eps00; mu0=mu00; !chapuz para convertir la variables de paso en globales
179174
!
180175
!!

src_main_pub/semba_fdtd.F90

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ PROGRAM SEMBA_FDTD_launcher
147147
#endif
148148
call setglobal(l%layoutnumber,l%size) !para crear variables globales con info MPI
149149

150-
if (l%size.gt.maxcores) then
151-
print *,'Maximum cores ',maxcores,' reached. to recompile'
152-
stop
153-
endif
154-
155150
WRITE (whoamishort, '(i5)') l%layoutnumber + 1
156151
WRITE (whoami, '(a,i5,a,i5,a)') '(', l%layoutnumber + 1, '/', l%size, ') '
157152

src_main_pub/timestepping.F90

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2-
! MIT License
3-
!
4-
! Copyright (c) 2023 University of Granada
5-
!
6-
! Permission is hereby granted, free of charge, to any person obtaining a copy
7-
! of this software and associated documentation files (the "Software"), to deal
8-
! in the Software without restriction, including without limitation the rights
9-
! to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
! copies of the Software, and to permit persons to whom the Software is
11-
! furnished to do so, subject to the following conditions:
12-
!
13-
! The above copyright notice and this permission notice shall be included in all
14-
! copies or substantial portions of the Software.
15-
!
16-
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
! SOFTWARE.
23-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
24-
25-
261
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
272
! SEMBA_FDTD sOLVER MODULE
283
! Creation date Date : April, 8, 2010
@@ -269,10 +244,6 @@ subroutine launch_simulation(sgg,sggMtag,tag_numbers, sggMiNo,sggMiEx,sggMiEy,sg
269244
!*******************************************************************************
270245
!*******************************************************************************
271246

272-
if (size.gt.maxcores) then
273-
print *,'Maximum cores ',maxcores,' reached. to recompile'
274-
stop
275-
endif
276247
planewave_switched_off=.false.
277248
fatalerror=.false.
278249
parar=.false.

src_main_pub/version.F90

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module version
2-
character (128), parameter :: compdate= &
3-
' Tue Jul 16 12:00:00 2023 +0000' // &
4-
' '
5-
character(128), parameter :: dataversion= &
6-
'SEMBA-FDTD Version v1.0 (Release)' // &
7-
trim(adjustl(compdate))
8-
end module version
2+
character (128), parameter :: compdate= __DATE__ // " " // __TIME__
3+
character(128), parameter :: dataversion=&
4+
'SEMBA-FDTD Version v1.0. Compiled on: ' // trim(adjustl(compdate))
5+
end module version

0 commit comments

Comments
 (0)