Skip to content

Commit

Permalink
Merge branch 'Nek5000:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dshaver-ANL authored Mar 6, 2024
2 parents 0d1884c + b514e45 commit 74c394f
Show file tree
Hide file tree
Showing 14 changed files with 231 additions and 192 deletions.
2 changes: 1 addition & 1 deletion 3rd_party/parRSB/install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

VER=0.9.1
VER=0.9.2

if [ "$1" == "clean" ]; then
rm -rf parRSB/build lib include 2>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion bin/makenek
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -a
#LD="$FC"

# config options (set to "?" to get a list)
#PPLIST=""
#PPLIST="PARRSB DPROCMAP HYPRE"

#-------------------------------------------------------------------------------
# WHAT FOLLOWS ARE OPTIONAL SETTINGS
Expand Down
4 changes: 2 additions & 2 deletions core/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ c
$ ,nktonv,nhis,lochis(4,lhis+maxobj)
$ ,ipscal,npscal,ipsco, ifldmhd
$ ,irstv,irstt,irstim,nmember(maxobj),nobj
$ ,ngeom,idpss(ldimt),meshPartitioner
$ ,ngeom,idpss(ldimt),fluid_partitioner,solid_partitioner
common /input2/ matype,nktonv,nhis,lochis,ipscal,npscal,ipsco
$ ,ifldmhd,irstv,irstt,irstim,nmember,nobj
$ ,ngeom,idpss,meshPartitioner
$ ,ngeom,idpss,fluid_partitioner,solid_partitioner

logical if3d,ifflow,ifheat,iftran,ifaxis,ifstrs,ifsplit
$ ,ifmgrid
Expand Down
4 changes: 3 additions & 1 deletion core/PARDICT
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ c Note: Keys have to be in captial letters
c
integer PARDICT_NKEYS

parameter(PARDICT_NKEYS = 122)
parameter(PARDICT_NKEYS = 124)

character*132 pardictkey(PARDICT_NKEYS)
data
Expand Down Expand Up @@ -127,3 +127,5 @@ c
& pardictkey(120) / 'TEMPERATURE:BOUNDARYTYPEMAP' /
& pardictkey(121) / 'SCALAR%%:BOUNDARYTYPEMAP' /
& pardictkey(122) / 'MESH:BOUNDARYIDMAP' /
& pardictkey(123) / 'MESH:FLUIDPARTITIONER' /
& pardictkey(124) / 'MESH:SOLIDPARTITIONER' /
1 change: 0 additions & 1 deletion core/comm_mpi.f
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ subroutine setupcomm(comm,newcomm,newcommg,path_in,session_in)
22 rewind(8)
if (nlin.gt.2) then
read(8,*,err=24) nsessions
write(6,*) 'ERROR: nsessmax in SIZE too low!'
if(nsessions.gt.nsessmax) goto 24
endif
if (nsessions.gt.1) read(8,*,err=24) ifneknekc
Expand Down
2 changes: 1 addition & 1 deletion core/genxyz.f
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ subroutine mesh_metrics
do ie = 1,nelt
ddmin = min(ddmin,dxmin_e(ie))
ddmax = max(ddmax,dxmax_e(ie))
dtmp = vlsum(JACM1(1,1,1,ie),nxyz)**1./3
dtmp = vlsum(bm1(1,1,1,ie),nxyz)**(1./ldim)
ddavg = ddavg + dtmp/(lx1-1)
enddo
dxmin = glmin(ddmin,1)
Expand Down
4 changes: 4 additions & 0 deletions core/makenek.inc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ case $FCcomp in
FR8="-r8"
FF77="-Mfixed"
;;
*flang*) FCPP="-Mpreprocess"
FR8="-r8"
FF77="-Mfixed"
;;
*nvfortran*) FCPP="-Mpreprocess"
FR8="-r8"
FF77="-Mfixed"
Expand Down
22 changes: 14 additions & 8 deletions core/map2.f
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ subroutine get_vert_map(nlv)
tol = tol / 10.0;
call find_con(wk,size(wk),tol,ierr)
endif
if(ierr.ne.0) then
tol = tol / 100.0;
call find_con(wk,size(wk),tol,ierr)
endif
call err_chk(ierr,'Connectivity calculation failed! '//
& 'Try tightening mesh::connectivityTol$')
endif
Expand Down Expand Up @@ -229,8 +233,8 @@ subroutine get_vert_map(nlv)
neliv = j

nel = neliv
call fpartMesh(eid8,vtx8,xyz,lelt,nel,nlv,nekcomm,
$ meshPartitioner,0,loglevel,ierr)
call fpartMesh(nel,eid8,vtx8,xyz,lelt,nlv,nekcomm,
$ fluid_partitioner,0,loglevel,ierr)
call err_chk(ierr,'partMesh fluid failed!$')

nelv = nel
Expand Down Expand Up @@ -282,8 +286,8 @@ subroutine get_vert_map(nlv)
nelit = j

nel = nelit
call fpartMesh(eid8,vtx8,xyz,lelt,nel,nlv,nekcomm,
$ 0,0,loglevel,ierr)
call fpartMesh(nel,eid8,vtx8,xyz,lelt,nlv,nekcomm,
$ solid_partitioner,0,loglevel,ierr)
call err_chk(ierr,'partMesh solid failed!$')

nelt = nelv + nel
Expand Down Expand Up @@ -404,7 +408,7 @@ subroutine read_con(wk,nwk,nelr,nv,ierr)

call blank(hdr,sizeof(hdr))
offs = 0
call nek_file_read(co2_h,sizeof(hdr),offs,hdr,ierr)
call nek_file_read(co2_h,int(sizeof(hdr),8),offs,hdr,ierr)
offs = offs + sizeof(hdr)
if(ierr.ne.0) goto 100

Expand All @@ -417,7 +421,7 @@ subroutine read_con(wk,nwk,nelr,nv,ierr)
endif
write (6,'(a,a128)') ' hdr:', hdr

call nek_file_read(co2_h,sizeof(test),offs,test,ierr)
call nek_file_read(co2_h,int(sizeof(test),8),offs,test,ierr)
if(ierr.ne.0) goto 100
call nek_file_close(co2_h,ierr)
if(ierr.ne.0) goto 100
Expand Down Expand Up @@ -765,14 +769,16 @@ subroutine read_map(vertex,nlv,wk,mdw,ndw)
if(ierr.ne.0) goto 100

call blank(hdr,132)
call nek_file_read(ma2_h,sizeof(hdr),int(0,8),hdr,ierr)
call nek_file_read(ma2_h,int(sizeof(hdr),8),int(0,8),
$ hdr,ierr)
lma2off_b = sizeof(hdr)
if(ierr.ne.0) goto 100

read (hdr,1) version,neli,nnzi
1 format(a5,2i12)

call nek_file_read(ma2_h,sizeof(test),lma2off_b,test,ierr)
call nek_file_read(ma2_h,int(sizeof(test),8),lma2off_b,
$ test,ierr)
if(ierr.ne.0) goto 100

call nek_file_close(ma2_h,ierr)
Expand Down
9 changes: 8 additions & 1 deletion core/mkuserfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ c automatically added by makenek
_ACEOF
fi

if ! cat $CASENAME.f | grep -qi "subroutine.*usrdat" ; then
notFound1=`cat $CASENAME.f | grep -qi "subroutine.*usrdat"'$'; echo $?`
echo $notFound1 >.tmp1
notFound2=`cat $CASENAME.f | grep -qi "subroutine.*usrdat .*"; echo $?`
echo $notFound2 >.tmp2
notFound3=`cat $CASENAME.f | grep -qi "subroutine.*usrdat().*"; echo $?`
echo $notFound3 >.tmp3

if [[ $notFound1 -gt 0 && $notFound2 -gt 0 && $notFound3 -gt 0 ]] ; then
cat >> $CASENAME.f << _ACEOF
c automatically added by makenek
Expand Down
Loading

0 comments on commit 74c394f

Please sign in to comment.