Skip to content
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

Combine H2 CRM branch with Tg branch #7

Open
wants to merge 126 commits into
base: h2crm
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
ffade98
Split resei in ti-loop
holm10 Nov 7, 2024
004731c
Make use of '**' for squares
holm10 Nov 7, 2024
2536674
Split atom energy residuals into components
holm10 Nov 7, 2024
9ad840d
Reformulate drift heating terms to us '**2'
holm10 Nov 7, 2024
83b916f
Induce error to validate testing
holm10 Nov 7, 2024
de9650b
Revert induced error
holm10 Nov 7, 2024
d8a7719
Don't build wheels on branch
holm10 Nov 7, 2024
9661240
Try inducing fail
holm10 Nov 7, 2024
e9601cc
Fix induced error
holm10 Nov 7, 2024
e07858d
Fix typo for squares
holm10 Nov 7, 2024
3565a75
Revert "Fix typo for squares"
holm10 Nov 7, 2024
532f908
Revert "Make use of '**' for squares"
holm10 Nov 7, 2024
cd3f64c
Split atom energy residuals into components
holm10 Nov 7, 2024
a417fa6
Don't build wheels on branch
holm10 Nov 7, 2024
a498c11
Rename temp4 to v2cc
holm10 Nov 7, 2024
be92dd2
Verify '**' is the issue
holm10 Nov 7, 2024
6f008b5
Update remaining squares to '**'
holm10 Nov 7, 2024
9e3d546
Make drifts squared in energy terms
holm10 Nov 7, 2024
1b98d09
Merge branch 'tg_rewrite' into tg_rewrite_passing
holm10 Nov 7, 2024
bdbe455
Merge pull request #89 from LLNL/tg_rewrite_passing
holm10 Nov 7, 2024
cc6110c
Move eqpg and reformulate
holm10 Nov 8, 2024
94563cb
Move eqpg into same loop
holm10 Nov 8, 2024
89f0da1
Fix missed endif
holm10 Nov 8, 2024
4ab0de4
Restructure engbalg for brevity
holm10 Nov 8, 2024
b29cbdb
Tidy up drift heating intermediates
holm10 Nov 8, 2024
6d94856
Label gas couplings
holm10 Nov 8, 2024
5795188
Restructure to highlight parity of equipartition
holm10 Nov 8, 2024
48ddf5f
Update drift-heating velocity var names
holm10 Nov 8, 2024
206ae17
Merge branch 'h2crm' into tg_rewrite
holm10 Nov 8, 2024
46a0ae2
Fix dissociation into different species
holm10 Nov 8, 2024
b56827b
Merge pull request #90 from LLNL/holm10-tg_rewrite-H2CRMcompatible
holm10 Nov 8, 2024
94564f5
Fix lin-break Typo
holm10 Nov 8, 2024
138f735
Update ev_aph
holm10 Nov 8, 2024
5b1d512
Further ev_aph fixes
holm10 Nov 8, 2024
307dba8
Rerun tests
holm10 Nov 8, 2024
3ba1eff
Switch to develop test branch
holm10 Nov 8, 2024
b4a3cd9
Disable flxa in boundary.m
holm10 Nov 8, 2024
880d60b
Revert to old psordis term
holm10 Nov 8, 2024
0c8a20c
Fix build issues
holm10 Nov 8, 2024
87b323c
Restore flxa-term
holm10 Nov 8, 2024
68a732d
Mathes formatting
holm10 Nov 8, 2024
c46af1f
Setup sources in multi-species dissociation arrays
holm10 Nov 8, 2024
d492738
Use new indices for dissociation
holm10 Nov 8, 2024
f8de7f2
Remove flxa - affects solution
holm10 Nov 8, 2024
2f8bc56
Remove commented-out lines, fix Tg indexing typo
holm10 Nov 8, 2024
9f77a3f
Use new molecular source terms
holm10 Nov 8, 2024
d818e5d
Add atom flux to boundary terms
holm10 Nov 8, 2024
e93ff2d
Move molecular drift terms to engbalg
holm10 Nov 8, 2024
b6c5f02
Fix definition of moved terms
holm10 Nov 8, 2024
fcb5476
Fix rank issue with reseg
holm10 Nov 8, 2024
1d7da26
Fix source term misnaming
holm10 Nov 8, 2024
50a5b68
Move out molecular terms
holm10 Nov 8, 2024
d3591b7
Move drift heating terms outside
holm10 Nov 8, 2024
104ce9a
Revert "Move drift heating terms outside"
holm10 Nov 8, 2024
f5a62be
Update odesetup.m
holm10 Nov 8, 2024
a1354c4
Move drift heating back to original loop
holm10 Nov 9, 2024
20a1bde
Replace drift heating to engbalg outside ngsp loop
holm10 Nov 9, 2024
e788110
Revert "Replace drift heating to engbalg outside ngsp loop"
holm10 Nov 10, 2024
622864d
Separate loops for drift heating if mols included
holm10 Nov 10, 2024
f4931dc
Fix conditional typo
holm10 Nov 11, 2024
d216874
Adds comments to engbalg restructure
holm10 Nov 11, 2024
d2ac451
Push new mol. drift heating implementation
holm10 Nov 11, 2024
7004e3a
Revert to original drift heating implementation
holm10 Nov 11, 2024
a7c53c1
Fix indentations
holm10 Nov 11, 2024
9629d9f
Fixes to CRM model
holm10 Nov 11, 2024
f8b8ae6
Fixes sign conventions and adds psorbgg
holm10 Nov 14, 2024
d91c88b
Merge branch 'tg_rewrite_H2CRM-compatible' into tg_rewrite_H2CRM-comp…
holm10 Nov 14, 2024
f31f2fd
Merge pull request #91 from LLNL/tg_rewrite_H2CRM-compatible_signfix
holm10 Nov 14, 2024
2385718
Fix seic drift-heating terms
holm10 Nov 14, 2024
2cb19ff
Fixes molecular tg equation restructure
holm10 Nov 15, 2024
08145da
Print Errors in tests
holm10 Nov 15, 2024
0ff176a
Fix Tg equation restructure w/o mols
holm10 Nov 15, 2024
4e28575
Add +/- switch for dissociation sign convention
holm10 Nov 15, 2024
05350b2
Fixes Ta equation when molecules included
holm10 Nov 16, 2024
abfc653
Molceular CRM implementation into physics routines
holm10 Nov 19, 2024
058cec9
Clarify isphiofft description
holm10 Nov 19, 2024
305133c
Add Fixed-Fraction file specifiers
holm10 Nov 19, 2024
f140b59
Updates pyscripts
holm10 Nov 20, 2024
fa3a669
Include CRUMPET CRM rates in build/disto
holm10 Nov 21, 2024
3a7a04c
Dynamically allocates the CRM directories
holm10 Nov 21, 2024
d59ee23
Added gfortran flag -fallow-argument-mismatch to remove errors
llnl-fesp Dec 15, 2024
5f00cda
Updated to pass the tests for Docker.
llnl-fesp Dec 19, 2024
01c8874
Trigger build tests
holm10 Jan 7, 2025
3879b40
Fixes build issues identified for some compilers
holm10 Jan 7, 2025
1b6ca93
Initial commit.
llnl-fesp Jan 7, 2025
98c0089
Formatting
llnl-fesp Jan 7, 2025
21b060c
Pass the "-r" switch through to create reference files.
llnl-fesp Jan 8, 2025
5c1e730
Merge branch 'master' of https://github.com/LLNL/UEDGE
llnl-fesp Jan 8, 2025
d32c88b
Updates readme and setup.py
holm10 Jan 9, 2025
9deab63
Finalizes build setup using pyproject.toml
holm10 Jan 9, 2025
b07bdb2
Updates ppp to work with UEDGE 8.1
holm10 Jan 9, 2025
4adb5ae
Adds omp capabilities for api pkg
holm10 Jan 9, 2025
da948c7
Merges OMP changes into newest bbb version
holm10 Jan 9, 2025
0d69cbb
Updates workflow tests for OMP version
holm10 Jan 9, 2025
7d89786
Makes OMP env detection BOOL based
holm10 Jan 11, 2025
ea631f0
Adds special c!omp for single-source build
holm10 Jan 11, 2025
60d456f
Compiler flag added for Basis build.
llnl-fesp Jan 12, 2025
22c65ec
Fixes additional BASIS conflicting routines
holm10 Jan 12, 2025
459cbbf
Merge branch 'v8_omp' of https://github.com/LLNL/UEDGE into v8_omp
holm10 Jan 12, 2025
d2d70fb
Merge branch 'master' into v8_omp
holm10 Jan 12, 2025
7782322
Brought Basis test setup up to date with the develop so the docker
llnl-fesp Jan 12, 2025
b7343ed
Attempts adding BASIS docker build
holm10 Jan 13, 2025
2cc0da1
Merge branch 'v8_omp' of https://github.com/LLNL/UEDGE into v8_omp
holm10 Jan 13, 2025
bb81cf9
Adds Docker BASIS tests
holm10 Jan 13, 2025
d671a17
Removes non-functional MPI coding
holm10 Jan 14, 2025
88a4f67
Updates testing and wheel workflows
holm10 Jan 14, 2025
49152cf
Fixes OMP tg compatibility
holm10 Jan 14, 2025
02468fe
Fixes boundary.m formatting
holm10 Jan 14, 2025
24866e3
Pruning threadprivate variables
holm10 Jan 14, 2025
901d07f
Conforms OMP Jacobian output to serial
holm10 Jan 14, 2025
f7172fa
Implements fixes to OMP Pandf1 evaluation
holm10 Jan 14, 2025
90ce6b1
Moves comnfe to Cvd pkg
holm10 Jan 14, 2025
77f587f
Reorders Use to comply w/ BASIS build
holm10 Jan 14, 2025
99ebd69
Merge pull request #93 from LLNL/v8_omp_pandf1
holm10 Jan 14, 2025
2473a98
Updates output and documentation
holm10 Jan 15, 2025
e2a2da5
Updates readme
holm10 Jan 15, 2025
26421bb
Fixes internal timing for OMP
holm10 Jan 22, 2025
fb9fec1
Fixes OMP pandf1 paral for icntunk=1
holm10 Feb 1, 2025
3fbb289
Fixes BASIS build
holm10 Feb 2, 2025
64e882b
Cleanings up ppp package
holm10 Feb 2, 2025
6eb3e43
Updates bug in workflow file
holm10 Feb 2, 2025
755147d
Cleans up syntax & indentation
holm10 Feb 2, 2025
27eeec7
Simplify icntnunk=1 OMP fix
holm10 Feb 3, 2025
47d7423
Updates ppp.v formatting
holm10 Feb 3, 2025
44a1e24
Merge branch 'v8_omp_molecules' into tg_rewrite_H2CRM-compatible
holm10 Feb 3, 2025
14ab7ea
Revert "Merge branch 'v8_omp_molecules' into tg_rewrite_H2CRM-compati…
holm10 Feb 3, 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
7 changes: 5 additions & 2 deletions .github/workflows/build-test-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ jobs:
- name: Return to pytests branch
uses: actions/checkout@v4
with:
ref: pytests
ref: pytests-develop
repository: LLNL/UEDGE
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests/${{ matrix.tests }}
pytest --isolate --tb=native -s pytests/${{ matrix.tests }}


build_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyver }}
if: false
# if: github.event_name == 'pull_request'
needs: run-all-tests
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -86,6 +87,7 @@ jobs:

build_wheels_pypy:
name: Build PyPy wheels on ${{ matrix.os }}
if: false
# if: github.event_name == 'pull_request'
needs: run-all-tests
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -193,6 +195,7 @@ jobs:

gather_wheels:
name: Gather built wheels
if: false
needs: [build_wheels, build_wheels_pypy]
# if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions aph/aph.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ sgvcxc real [m^2/s] /2.e-14/# const. value of sigv_cx for issgvcxc=1;
isaphdir integer /1/ #=1 uses aphdir; =0 uses explicit rate file names
crmnfname character*120 /"crumpet_nrates.dat"/ # Name of CRM rate data file
crmefname character*120 /"crumpet_Erates.dat"/ # Name of CRM E-sink data file
crmdir character*120 /"."/ # Path to folder containing CRM data files: data files
# specified by crmnfname and crmename
aphdir character*120 # name of directory containing data files
data_directory character*120 # another dirname containing data files. This is to be be passed in

Expand Down
4 changes: 2 additions & 2 deletions aph/aphrates.m
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ real function sv_crumpet (te, ne, rate)
sv_crumpet=0
else
c compute abscissae --
zloge=log(te/ev)
zloge=log(te/ev_aph)
rle=max(crlemin, min(zloge,crlemax))
zlogd=log10(ne)
rld=max(crldmin, min(zlogd,crldmax))
Expand Down Expand Up @@ -1461,7 +1461,7 @@ call remark("Rate option not recognized!")
jd=jd-1
je=je-1
fjd=((ne/1e6)-(10**(10+0.5*jd)))/ (10**(10+0.5*jd)*(10**0.5 - 1) )
fje=(te/ev - (10**(-1.2+0.1*je)))/( (10**(-1.2+0.1*je))*(10**0.1-1))
fje=(te/ev_aph - (10**(-1.2+0.1*je)))/( (10**(-1.2+0.1*je))*(10**0.1-1))

svd_crm1=svd_crm11+fjd*(svd_crm12-svd_crm11)
svd_crm2=svd_crm21+fjd*(svd_crm22-svd_crm21)
Expand Down
42 changes: 23 additions & 19 deletions aph/aphread.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,17 @@ call readehr2(TRIM(adname))
subroutine crumpetread

c ... Set up tables for hydrogenic molecular processes using a CRUMPET
c ... CRM file
c ... CRM file. Looks for files crmnfname and crmefname in the directory
c ... specified by crmdir. If not found, looks for the file in aphdir,
c ... and finally in the CWD

implicit none

c ... Common blocks:
Use(Dim)
Use(UEpar) # ismolcrm
Use(Share) # nhdf, hdfilename
Use(Data_input) # aphdir, data_directory, crmefname, crmnfname
Use(Data_input) # aphdir, data_directory, crmdir, crmefname, crmnfname
Use(Rtcrumpet) # cmpd, cmpe

c ... Function:
Expand Down Expand Up @@ -187,10 +189,11 @@ call gallot("Rtcrumpet",0)
enddo

if (ismolcrm .ne. 0) then

call findFile(crmnfname, aphdirx, dataDir, adname, isaphdir)
c call findFile(crmnfname, aphdirx, aphdirx, adname, isaphdir)
call findFile(crmnfname, crmdir, aphdirx, adname, isaphdir)
call readcrumpetn(TRIM(adname))
call findFile(crmefname, aphdirx, dataDir, adname, isaphdir)
call findFile(crmefname, aphdirx, aphdirx, adname, isaphdir)
c call findFile(crmefname, crmdir, aphdirx, adname, isaphdir)
call readcrumpete(TRIM(adname))


Expand Down Expand Up @@ -969,6 +972,7 @@ subroutine readcrumpetn (fname)
c local variables --
integer ios, nget, jd, jt
character*80 zdummy
character(len=500) :: io_emsg
real crmdummy(cmpe,cmpd)

c procedures --
Expand All @@ -979,12 +983,11 @@ real crmdummy(cmpe,cmpd)
c----------------------------------------------------------------------c

call freeus(nget)
open (nget, file=fname, form='formatted', iostat=ios,
. status='old')
if (ios .ne. 0) then
write(*,*) fname
call xerrab('**** CRM rate file not found; set aphdir
. path')
open (nget, file=TRIM(fname), form='formatted', iostat=ios,
. status='old',iomsg=io_emsg)
if (ios .ne. 0) then
print *, trim(io_emsg)
call xerrab("")
endif

c Atom depletion rate in CRM (cm**3/sec):
Expand Down Expand Up @@ -1053,6 +1056,7 @@ subroutine readcrumpete (fname)
c local variables --
integer ios, nget, jd, jt
character*80 zdummy
character(len=500) :: io_emsg
real crmdummy(cmpe,cmpd)

c procedures --
Expand All @@ -1064,10 +1068,10 @@ real crmdummy(cmpe,cmpd)

call freeus(nget)
open (nget, file=fname, form='formatted', iostat=ios,
. status='old')
. status='old',iomsg=io_emsg)
if (ios .ne. 0) then
call xerrab('**** CRM rate file not found; set aphdir
. path')
print *, trim(io_emsg)
call xerrab("")
endif

c Electron energy change due to atoms (W cm**3):
Expand Down Expand Up @@ -1180,11 +1184,11 @@ c Atom radiation source due to external interactions (W cm**3):
c convert to SI units:
do jt=1,cmpe
do jd=1,cmpd
crmselm(jt,jd)= crmselm(jt,jd)*ev
crmsiam(jt,jd)= crmsiam(jt,jd)*ev
crmspotm(jt,jd)= crmspotm(jt,jd)*ev
crmsrada(jt,jd)= crmsrada(jt,jd)*ev
crmsradm(jt,jd)= crmsradm(jt,jd)*ev
crmselm(jt,jd)= crmselm(jt,jd)*ev_aph
crmsiam(jt,jd)= crmsiam(jt,jd)*ev_aph
crmspotm(jt,jd)= crmspotm(jt,jd)*ev_aph
crmsrada(jt,jd)= crmsrada(jt,jd)*ev_aph
crmsradm(jt,jd)= crmsradm(jt,jd)*ev_aph
enddo
enddo

Expand Down
18 changes: 16 additions & 2 deletions bbb/bbb.v
Original file line number Diff line number Diff line change
Expand Up @@ -2223,8 +2223,8 @@ psorbgg(0:nx+1,0:ny+1,1:ngsp) _real [part/s] # diag artific neut backg source
psorbgz(0:nx+1,0:ny+1) _real [part/s] # diag artific impur backg source
erliz(0:nx+1,0:ny+1) _real [J/s] # H rad'n loss for ioniz'n
edisse(0:nx+1,0:ny+1) _real [J/s] # Elec E loss due to mol interactions
emolia(0:nx+1,0:ny+1) _real [J/s] # i/a E change due to mol interactions
eiamoldiss(0:nx+1,0:ny+1) _real [J/s] # i/a enegy density incr, mol diss
emolia(0:nx+1,0:ny+1,1:nisp) _real [J/s] # i/a E change due to mol interactions
eiamoldiss(0:nx+1,0:ny+1,1:nisp) _real [J/s] # i/a enegy density incr, mol diss
erlrc(0:nx+1,0:ny+1) _real [J/s] # H rad'n loss for recom'n
vsoreec(0:nx+1,0:ny+1) _real [J/s] # cell ctr tot elec vol eng source
vsoree(0:nx+1,0:ny+1) _real [J/s] # cell ave tot elec vol eng source
Expand All @@ -2242,6 +2242,20 @@ seec(0:nx+1,0:ny+1) _real
seev(0:nx+1,0:ny+1) _real
seic(0:nx+1,0:ny+1) _real
seiv(0:nx+1,0:ny+1) _real
seik(0:nx+1,0:ny+1) _real +work # Kinetic energy source from recom.
# and ioniz. (ions)
seid(0:nx+1,0:ny+1) _real +work # Kinetic energy source from
# dissociation (ions)
seidh(0:nx+1,0:ny+1) _real +work # Drift heating (ions)
seit(0:nx+1,0:ny+1) _real +work # Internal energy source/sink
# from ioniz and recom (ions)
psicx(0:nx+1,0:ny+1) _real +work # CX rate (ions)
seak(0:nx+1,0:ny+1) _real +work # Kinetic energy sink/source from
# rec and CX (atoms)
sead(0:nx+1,0:ny+1) _real +work # Kinetic energy source from
# dissociation (atoms)
seadh(0:nx+1,0:ny+1) _real +work # Drift heating (atoms)

segc(0:nx+1,0:ny+1,1:ngsp) _real [J/(sm**3)]#v_grad_P for neutral eng. eqn
resco(0:nx+1,0:ny+1,1:nisp) _real
resng(0:nx+1,0:ny+1,1:ngsp) _real
Expand Down
10 changes: 5 additions & 5 deletions bbb/boundary.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ real yl(neq), yldot(neq)
Use(Phyvar)
Use(UEpar) # isnewpot,r0slab,cslim,dcslim,csfaclb,csfacrb,csfacti,
# isnion,isupon,isteon,istion,isngon,isnionxy,isuponxy,
# isteonxy,istionxy,isngonxy,isphionxy
# isteonxy,istionxy,isngonxy,isphionxy, ismolcrm
Use(Aux) # ixmp
Use(Coefeq) # fac2sp,cf2ef,exjbdry
Use(Bcond) # iflux,ncore,tcoree,tcorei,tbmin,nbmin,ngbmin,
Expand Down Expand Up @@ -1731,7 +1731,7 @@ ccc yldot(iv2) = nurlxp*(phiwo(ix) - phi(ix,ny))/temp0
if (ishymol.eq.1 .and. igsp.eq.2) then
ta0 = engbsr * max(tg(1,iy,1),temin*ev)
vxa = 0.25 * sqrt( 8*ta0/(pi*mg(1)) )
flxa = (1-alblb(iy,1,1))*ng(1,iy,1)*vxa*sx(0,iy)
flxa = ismolcrm*(1-alblb(iy,1,1))*ng(1,iy,1)*vxa*sx(0,iy)

if (isupgon(1) .eq. 1) then # two atoms per molecule
flux_inc = 0.5*( fnix(0,iy,1) + fnix(0,iy,2) + flxa)
Expand Down Expand Up @@ -2086,7 +2086,7 @@ cc if (recyce .le. 0) bcen = 0. # gets back to old case
if (ishymol.eq.1 .and. igsp.eq.2) then
ta0 = max(tg(ixt1,iy,1), temin*ev)
vxa = 0.25 * sqrt( 8*ta0/(pi*mg(1)) )
flxa = (1-alblb(iy,1,jx))*ng(ixt1,iy,1)*vxa*sx(ixt,iy)
flxa = ismolcrm*(1-alblb(iy,1,jx))*ng(ixt1,iy,1)*vxa*sx(ixt,iy)

if (isupgon(1) .eq. 1) then # two atoms for one molecule
flux_inc = 0.5*( fnix(ixt,iy,1) + fnix(ixt,iy,2) +flxa)
Expand Down Expand Up @@ -2405,7 +2405,7 @@ ccc yldot(iv) = -nurlxp*(phi(0,iy)-phi(1,iy))/temp0
if (ishymol.eq.1 .and. igsp.eq.2) then
ta0 = engbsr * max(tg(nx,iy,1),temin*ev)
vxa = 0.25 * sqrt( 8*ta0/(pi*mg(1)) )
flxa=(1-albrb(iy,1,nxpt))*ng(nx,iy,1)*vxa*sx(nx,iy)
flxa= ismolcrm*(1-albrb(iy,1,nxpt))*ng(nx,iy,1)*vxa*sx(nx,iy)
if (isupgon(1) .eq. 1) then # two atoms for one molecule
flux_inc = 0.5*( fnix(nx,iy,1) + fnix(nx,iy,2) -flxa)
else
Expand Down Expand Up @@ -2777,7 +2777,7 @@ cc if (recyce .le. 0) bcen = 0. # gets back to old case
if (ishymol.eq.1 .and. igsp.eq.2) then
ta0 = max(tg(ixt1,iy,1), temin*ev)
vxa = 0.25 * sqrt( 8*ta0/(pi*mg(1)) )
flxa=(1-albrb(iy,1,jx))*ng(ixt1,iy,1)*vxa*sx(ixt1,iy)
flxa= ismolcrm*(1-albrb(iy,1,jx))*ng(ixt1,iy,1)*vxa*sx(ixt1,iy)

if (isupgon(1) .eq. 1) then # two atoms for one molecule
flux_inc = 0.5*( fnix(ixt1,iy,1) +fnix(ixt1,iy,2)-flxa)
Expand Down
Loading
Loading