Last change
on this file since 977 was
686,
checked in by dubos, 6 years ago
|
devel/unstructured : piecewise-constant vertical remapping
|
File size:
801 bytes
|
Rev | Line | |
---|
[624] | 1 | !-------------------------------------------------------------------------- |
---|
| 2 | !---------------------------- caldyn_wflux ---------------------------------- |
---|
| 3 | !$OMP DO SCHEDULE(STATIC) |
---|
| 4 | DO ij=1,primal_num |
---|
| 5 | DO l = llm-1,1,-1 |
---|
| 6 | ! cumulate mass flux convergence from top to bottom |
---|
| 7 | convm(l,ij) = convm(l,ij) + convm(l+1,ij) |
---|
| 8 | END DO |
---|
[686] | 9 | dmass_col(ij) = convm(1,ij) |
---|
[624] | 10 | DO l = 2,llm |
---|
| 11 | ! Compute vertical mass flux (l=1,llm+1 set to zero at init) |
---|
| 12 | wflux(l,ij) = mass_bl(l,ij) * dmass_col(ij) - convm(l,ij) |
---|
| 13 | END DO |
---|
| 14 | END DO |
---|
| 15 | !$OMP END DO |
---|
| 16 | ! make sure wflux is up to date |
---|
| 17 | !$OMP BARRIER |
---|
| 18 | !---------------------------- caldyn_wflux ---------------------------------- |
---|
| 19 | !-------------------------------------------------------------------------- |
---|
Note: See
TracBrowser
for help on using the repository browser.