Skip to content

Commit 3dad48e

Browse files
committed
Up to date with the CVS head and cleaned out old facets stuff and not required
for the core.
1 parent dd0008a commit 3dad48e

File tree

428 files changed

+103111
-18088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+103111
-18088
lines changed

Configure

100644100755
File mode changed.

Configure.sys

100644100755
File mode changed.

Dirlist

100644100755
File mode changed.

INSTALL

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
UEDGE is in a transitional phase from running in the BASIS environment,
3-
developed at LLNL, to Python. This version, tagged $Name: V7_09_01 $, can
3+
developed at LLNL, to Python. This version, tagged $Name: $, can
44
run in both environments. If you have interest in the Basis version of
55
UEDGE contact Bill Meyer ([email protected]). New installations of the
66
Basis version are discouraged as there is no longer any official support

LICENSE

100644100755
File mode changed.

MANIFEST.in

100644100755
File mode changed.

Makefile.Forthon

100644100755
+31-20
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,56 @@ DEBUG = -v --fargs "-Ofast -DFORTHON -cpp" # -g #--fargs "-C=array" #--fargs "-C
22

33
SO = so
44
PUBLICHOME =
5-
BUILDDIR = ../build
5+
BUILDDIR = build
66
DIRLIST = com aph api bbb flx grd svr wdf
7-
MYPYTHON = python2
8-
FORTHON = Forthon
7+
MYPYTHON = python3
8+
FORTHON = Forthon3
9+
BUILDBASE = -v --build-base $(BUILDDIR)
10+
INSTALLARGS = --pkgbase uedge $(BUILDBASE)
911
##MYPYTHON = /home1/rognlien/Python2/Python-2.4.2/python
1012

1113
# Following 2 variables set in Makefile.PETSc, if used (if unset, ignored)
1214
# SETUPOPTS =
1315
# PETSC-UEDGE =
1416
# PETSC-COM =
1517

16-
all: mppl2f90 compy.$(SO) aphpy.$(SO) apipy.$(SO) bbbpy.$(SO) flxpy.$(SO) grdpy.$(SO) svrpy.$(SO) wdfpy.$(SO)
18+
all: mppl2f90 $(BUILDDIR)/compydep $(BUILDDIR)/grdpydep $(BUILDDIR)/flxpydep $(BUILDDIR)/bbbpydep $(BUILDDIR)/svrpydep $(BUILDDIR)/wdfpydep $(BUILDDIR)/aphpydep $(BUILDDIR)/apipydep
1719
rm -f uedgeC.so
1820

1921
mppl2f90:
2022
(export PYTHONPATH=.:./pyscripts; $(MYPYTHON) convertor)
2123

22-
compy.$(SO): com/blasext.F com/brent.F com/comutil.F com/misc.F com/mnbrak.F com/dsum.f com/dummy_py.f com/error.f com/getmsg.f com/ssum.f com/$(PETSC-COM) com/com.v
23-
(cd com;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -f blasext.F com brent.F comutil.F misc.F mnbrak.F dsum.f dummy_py.f error.f getmsg.f ssum.f $(PETSC-COM))
24+
$(BUILDDIR)/compydep: com/blasext.F com/brent.F com/comutil.F com/misc.F com/mnbrak.F com/dsum.f com/dummy_py.f com/error.f com/getmsg.f com/ssum.f com/$(PETSC-COM) com/com.v
25+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile com/com.v -f com/blasext.F com com/brent.F com/comutil.F com/misc.F com/mnbrak.F com/dsum.f com/dummy_py.f com/error.f com/getmsg.f com/ssum.f $(PETSC-COM)
26+
touch $@
2427

25-
aphpy.$(SO): compy.$(SO) aph/aphrates.F aph/aphread.F aph/aph.v
26-
(cd aph;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -f aphrates.F aph aphread.F)
28+
$(BUILDDIR)/aphpydep: $(BUILDDIR)/compydep aph/aphrates.F aph/aphread.F aph/aph.v
29+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile aph/aph.v -f aph/aphrates.F aph aph/aphread.F
30+
touch $@
2731

28-
apipy.$(SO): compy.$(SO) api/apifcn.F api/apip93.F api/apisorc.F api/fimp.F api/fmombal.F api/inelrates.F api/sputt.F api/api.v com/com.v
29-
(cd api;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -d com -f apifcn.F api apip93.F apisorc.F fimp.F fmombal.F inelrates.F sputt.F)
32+
$(BUILDDIR)/apipydep: $(BUILDDIR)/compydep api/apifcn.F api/apip93.F api/apisorc.F api/fimp.F api/fmombal.F api/inelrates.F api/sputt.F api/api.v com/com.v
33+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile api/api.v -d com -f api/apifcn.F api api/apip93.F api/apisorc.F api/fimp.F api/fmombal.F api/inelrates.F api/sputt.F
34+
touch $@
3035

31-
bbbpy.$(SO): compy.$(SO) bbb/boundary.F bbb/convert.F bbb/geometry.F bbb/griddubl.F bbb/oderhs.F bbb/odesetup.F bbb/odesolve.F bbb/potencur.F bbb/turbulence.F bbb/ext_neutrals.F bbb/bbb.v com/com.v
32-
(cd bbb;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) --macros ../com/com.v $(READLINE) -d com -f boundary.F bbb convert.F geometry.F griddubl.F oderhs.F odesetup.F odesolve.F potencur.F turbulence.F ext_neutrals.F)
36+
$(BUILDDIR)/bbbpydep: $(BUILDDIR)/compydep bbb/boundary.F bbb/convert.F bbb/geometry.F bbb/griddubl.F bbb/oderhs.F bbb/odesetup.F bbb/odesolve.F bbb/potencur.F bbb/turbulence.F bbb/ext_neutrals.F bbb/bbb.v com/com.v
37+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) --interfacefile bbb/bbb.v $(DEBUG) --macros com/com.v $(READLINE) -d com -f bbb/boundary.F bbb bbb/convert.F bbb/geometry.F bbb/griddubl.F bbb/oderhs.F bbb/odesetup.F bbb/odesolve.F bbb/potencur.F bbb/turbulence.F bbb/ext_neutrals.F
38+
touch $@
3339

34-
flxpy.$(SO): compy.$(SO) flx/flxcomp.F flx/flxdriv.F flx/flxread.F flx/flxwrit.F flx/flx.v com/com.v
35-
(cd flx;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -d com -f flxcomp.F flx flxdriv.F flxread.F flxwrit.F)
40+
$(BUILDDIR)/flxpydep: $(BUILDDIR)/compydep flx/flxcomp.F flx/flxdriv.F flx/flxread.F flx/flxwrit.F flx/flx.v com/com.v
41+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile flx/flx.v -d com -f flx/flxcomp.F flx flx/flxdriv.F flx/flxread.F flx/flxwrit.F
42+
touch $@
3643

37-
grdpy.$(SO): compy.$(SO) grd/grdcomp.F grd/grddriv.F grd/grdinit.F grd/grdread.F grd/grdwrit.F grd/grd.v com/com.v
38-
(cd grd;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -d com -f grdcomp.F grd grddriv.F grdinit.F grdread.F grdwrit.F)
44+
$(BUILDDIR)/grdpydep: $(BUILDDIR)/compydep grd/grdcomp.F grd/grddriv.F grd/grdinit.F grd/grdread.F grd/grdwrit.F grd/grd.v com/com.v
45+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile grd/grd.v -d com -f grd/grdcomp.F grd grd/grddriv.F grd/grdinit.F grd/grdread.F grd/grdwrit.F
46+
touch $@
3947

40-
svrpy.$(SO): svr/daspk.F svr/nksol.F svr/svrut1.F svr/svrut2.F svr/svrut3.F svr/svrut4.F svr/vodpk.F svr/uoa.F svr/daux1.f svr/$(PETSC-UEDGE) svr/svr.v
41-
(cd svr;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) -f daspk.F svr nksol.F svrut1.F svrut2.F svrut3.F svrut4.F vodpk.F uoa.F daux1.f $(PETSC-UEDGE))
48+
$(BUILDDIR)/svrpydep: $(BUILDDIR)/bbbpydep svr/daspk.F svr/nksol.F svr/svrut1.F svr/svrut2.F svr/svrut3.F svr/svrut4.F svr/vodpk.F svr/uoa.F svr/daux1.f svr/$(PETSC-UEDGE) svr/svr.v
49+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile svr/svr.v --macros bbb/bbb.v -d bbb -f svr/daspk.F svr svr/nksol.F svr/svrut1.F svr/svrut2.F svr/svrut3.F svr/svrut4.F svr/vodpk.F svr/uoa.F svr/daux1.f $(PETSC-UEDGE)
50+
touch $@
4251

43-
wdfpy.$(SO): wdf/wdf.F wdf/wdf.v
44-
(cd wdf;$(FORTHON) --builddir $(BUILDDIR) -a $(FCOMP) $(DEBUG) wdf)
52+
$(BUILDDIR)/wdfpydep: wdf/wdf.F wdf/wdf.v
53+
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile wdf/wdf.v -f wdf/wdf.F wdf
54+
touch $@
4555

4656
public: all
4757
publishpyuedge90.py $(PUBLICHOME)
@@ -55,6 +65,7 @@ update:
5565
clean:
5666
find . -depth -name build -exec rm -rf {} \;
5767
find . -depth -name __pycache__ -exec rm -rf {} \;
68+
find . -name \*.pyc -exec rm {} \;
5869
find . -name \*.F -exec rm {} \;
5970
touch uedgeC_Forthon.c
6071

Makefile.Forthon3

-79
This file was deleted.

Makefile.PETSc

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FARGS = --fargs -I$(PETSC_DIR) --fargs -I$(PETSC_DIR)/$(PETSC_ARCH)/inclu
55
#FCOMP = -F g95 $(FARGS)
66
FCOMP = $(FARGS)
77

8-
include Makefile.Forthon
8+
include Makefile.Forthon3
99

1010
MYPYTHONP = python-uedge
1111
SETUPOPTS = --petsc

Package

100644100755
File mode changed.

ProgramMake

100644100755
File mode changed.

README-FORTHON

100644100755
File mode changed.

README.disclaimer

100644100755
File mode changed.

README.md

100644100755
File mode changed.

README_Pyuedge

100644100755
File mode changed.

README_Uedge_vers

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ those of the United States Government or the University of California, and
2929
shall not be used for advertising or product endorsement purposes.
3030

3131
*****************************************************************************
32-
This file was committed $Date: 2018/02/28 18:32:42 $ and tagged $Name: V7_09_01 $
32+
This file was committed $Date: 2021/05/12 23:23:14 $ and tagged $Name: $
3333

3434
Version 3.0 Corresponds to CVS archives as of 12/14/99
3535

aph/Package

100644100755
File mode changed.

aph/PackageMake

100644100755
File mode changed.

aph/aph.pack

100644100755
File mode changed.

aph/aph.v

100644100755
File mode changed.

aph/aphrates.m

100644100755
+19-9
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
5757
erl1 = erl11 + fje*(erl12-erl11)
5858

5959
c----------------------------------------------------------------------c
60-
elseif (istabon>9 .and. istabon<14) then # logarith. interp on Stotler-95
60+
elseif ((istabon>9 .and. istabon<14) .or. istabon .eq. 17) then
61+
c log-log interp on Stotler DEGAS2 tables
6162

6263
jr = 1
6364

@@ -138,7 +139,7 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
138139

139140
c----------------------------------------------------------------------c
140141
else # write error message
141-
call xerrab('function erl1 not defined for istabon > 15')
142+
call xerrab('function erl1 not defined for istabon > 17')
142143
endif
143144

144145
return
@@ -203,7 +204,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
203204
erl2 = erl21 + fje*(erl22-erl21)
204205

205206
c----------------------------------------------------------------------c
206-
elseif (istabon>9 .and. istabon<14) then # log. interp. of Stotler-95
207+
elseif ((istabon>9 .and. istabon<14) .or. istabon .eq. 17) then
208+
c log-log interp on Stotler DEGAS2 tables
207209

208210
jr = 1
209211

@@ -284,7 +286,7 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
284286

285287
c-----------------------------------------------------------------------
286288
else # write error message
287-
call xerrab('function erl2 not defined for istabon > 15')
289+
call xerrab('function erl2 not defined for istabon > 17')
288290
endif
289291

290292
return
@@ -311,6 +313,7 @@ real function rcx (t0, n0, k)
311313
real kdum
312314
integer zn,za,zamax
313315
external mcrates
316+
real rcxcopy
314317

315318
c Compute rate parameter for k--->k-1 charge exchange on neutral hydrogen
316319
c k = initial charge state
@@ -385,7 +388,8 @@ c fractional part of interval (je,je+1) --
385388
zn=1 # nuclear charge for hydrogenic species
386389
zamax=1 # maximum atomic charge for hydrogenic species
387390
za=1 # compute c-x rate for this charge state
388-
call mcrates(n0,t0,t0,za,zamax,zn,kdum,kdum,rcx)
391+
call mcrates(n0,t0,t0,za,zamax,zn,kdum,kdum,rcxcopy)
392+
rcx=rcxcopy
389393

390394
c----------------------------------------------------------------------c
391395
else # use analytic model (hydrogen) for all other istabon
@@ -638,6 +642,7 @@ real function rra (te, ne, tau, k)
638642
real xuse,yuse,vlog10rra
639643
real kdum
640644
integer zn,za,zamax
645+
real rracopy
641646

642647
c Compute rate parameter for k--->k-1 recombination
643648
c k = initial charge state
@@ -772,7 +777,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
772777
rra = srecf(te/ev,ne)
773778

774779
c----------------------------------------------------------------------c
775-
elseif (istabon>9 .and. istabon<14) then # use log interp on Stotler
780+
elseif ((istabon>9 .and. istabon<14) .or. istabon .eq. 17) then
781+
c log-log interp on Stotler DEGAS2 tables
776782
jr = 1
777783
c compute abscissae --
778784
zloge=log(te/ev)
@@ -854,7 +860,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
854860
zn=1 # nuclear charge for hydrogenic species
855861
zamax=1 # maximum atomic charge for hydrogenic species
856862
za=1 # compute recombination rate for this charge state
857-
call mcrates(ne,te,te,za,zamax,zn,kdum,rra,kdum)
863+
call mcrates(ne,te,te,za,zamax,zn,kdum,rracopy,kdum)
864+
rra=rracopy
858865

859866
c----------------------------------------------------------------------c
860867
endif
@@ -892,6 +899,7 @@ real function rsa (te, ne, tau, k)
892899
real kdum
893900
integer zn,za,zamax
894901
external mcrates
902+
real rsacopy
895903

896904
c Compute rate parameter for k--->k+1 ionization by electrons
897905
c k = initial charge state
@@ -1027,7 +1035,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
10271035
rsa = sionf(te/ev,ne)
10281036

10291037
c----------------------------------------------------------------------c
1030-
elseif (istabon>9 .and. istabon<14) then # log interp on Stotler
1038+
elseif ((istabon>9 .and. istabon<14) .or. istabon .eq. 17) then
1039+
c log-log interp on Stotler DEGAS2 tables
10311040

10321041
jr = 1
10331042

@@ -1111,7 +1120,8 @@ c fractional parts of intervals (je,je+1) and (jd,jd+1) --
11111120
zn=1 # nuclear charge for hydrogenic species
11121121
zamax=1 # maximum atomic charge for hydrogenic species
11131122
za=0 # compute ionization rate for this charge state
1114-
call mcrates(ne,te,te,za,zamax,zn,rsa,kdum,kdum)
1123+
call mcrates(ne,te,te,za,zamax,zn,rsacopy,kdum,kdum)
1124+
rsa=rsacopy
11151125

11161126
c----------------------------------------------------------------------c
11171127
endif

aph/aphread.m

100644100755
+8
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ call readmc(nhdf,hdfilename)
118118
c ... the same ne-dimension and te-dimension for all species, so
119119
c ... the hydrogenic tables must have the same dimensions as the
120120
c ... impurity tables, if both are present.
121+
elseif (istabon .eq. 17) then
122+
mpe=60
123+
mpd=15
124+
mpr=1
125+
call gallot("Rtdegas",0)
126+
call findFile('ehr5.dat', aphdirx, dataDir, adname, isaphdir)
127+
call readehr2(TRIM(adname))
128+
call setauxvar
121129
endif
122130

123131
return

api/Package

100644100755
File mode changed.

api/PackageMake

100644100755
File mode changed.

api/api.h

100644100755
File mode changed.

api/api.pack

100644100755
File mode changed.

api/api.v

100644100755
File mode changed.

api/api_basis.v

100644100755
File mode changed.

api/apifcn.m

100644100755
File mode changed.

api/apip93.m

100644100755
File mode changed.

api/apisorc.m

100644100755
+6-6
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ real fnzyso(0:nxd+1,nzsptd) # source profiles along outer wall
7070

7171
c ... Loop over impurity sources, doing the outer and inner walls.
7272
do isor = 1, nzsor
73-
call imp_sorc (nxd, nzsptd, iszsorlb(1,isor),
74-
. ixzbego(1,isor), ixzendo(1,isor), ixp1o,
75-
. ximpo(1,isor), wimpo(1,isor), impsoro(1,isor),
73+
call imp_sorc (nxd, nzsptd, iszsorlb(1:,isor),
74+
. ixzbego(1:,isor), ixzendo(1:,isor), ixp1o,
75+
. ximpo(1:,isor), wimpo(1:,isor), impsoro(1:,isor),
7676
. xcwo, syo, fnzyso)
77-
call imp_sorc (nxd, nzsptd, iszsorlb(1,isor),
78-
. ixzbegi(1,isor), ixzendi(1,isor), ixp1i,
79-
. ximpi(1,isor), wimpi(1,isor), impsori(1,isor),
77+
call imp_sorc (nxd, nzsptd, iszsorlb(1:,isor),
78+
. ixzbegi(1:,isor), ixzendi(1:,isor), ixp1i,
79+
. ximpi(1:,isor), wimpi(1:,isor), impsori(1:,isor),
8080
. xcwi, syi, fnzysi)
8181
enddo
8282

api/fimp.m

100644100755
File mode changed.

api/fmombal.m

100644100755
+8-6
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,18 @@ real denmass(miso,0:nzch), caplam(KXA,miso),
276276
> (nuion(misa,nz) + nurec(misa,nz))*al32(m)
277277
fricc(misa,nz,5) = - denmass(misa,nz)*usol(m,nz,misa)*
278278
> (nuion(misa,nz) + nurec(misa,nz))*al32(m)
279-
if( nz.gt.1 )
280-
> friction(misa,nz) = friction(misa,nz) + usol(m,nz-1,misa)
281-
> *denmass(misa,nz-1) * nuion(misa,nz-1) * al32(m)
279+
if( nz.gt.1 ) then
280+
friction(misa,nz) = friction(misa,nz) + usol(m,nz-1,misa)
281+
> *denmass(misa,nz-1) * nuion(misa,nz-1) * al32(m)
282282
fricc(misa,nz,5) = fricc(misa,nz,5) + usol(m,nz-1,misa)
283283
> *denmass(misa,nz-1) * nuion(misa,nz-1) * al32(m)
284-
if( nz.lt.nzmax )
285-
> friction(misa,nz) = friction(misa,nz) + usol(m,nz+1,misa)
286-
> *denmass(misa,nz+1) * nurec(misa,nz+1) * al32(m)
284+
endif
285+
if( nz.lt.nzmax ) then
286+
friction(misa,nz) = friction(misa,nz) + usol(m,nz+1,misa)
287+
> *denmass(misa,nz+1) * nurec(misa,nz+1) * al32(m)
287288
fricc(misa,nz,5) = fricc(misa,nz,5) + usol(m,nz+1,misa)
288289
> *denmass(misa,nz+1) * nurec(misa,nz+1) * al32(m)
290+
endif
289291
enddo
290292
enddo
291293
return

api/inelrates.m

100644100755
File mode changed.

api/sputt.m

100644100755
File mode changed.

bbb/Package

100644100755
File mode changed.

bbb/PackageMake

100644100755
File mode changed.

bbb/bbb.h

100644100755
+5-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
! maximum number of gas species; also must set in com.v
66
#define nmcmx 12
77
! maximum number of EIRENE test species in data file 'fort.44'
8-
#define ndomainmx 128
8+
#define ndomainmx 32
99
! maximum number of domains for domain decomposition
1010
#define nxptmx 2
1111
! maximum number of x-points in R-Z domain
1212
#define ndcsmx nispmx*nxptmx
1313
! data dimension for csfaclb and csfacrb
14+
#define nispmxngspmx nispmx*ngspmx
15+
! tot numb ion*gas species
16+
#define nstramx 10
17+
! maximum number of strata for MC neutrals code

bbb/bbb.pack

100644100755
File mode changed.

0 commit comments

Comments
 (0)