@@ -316,6 +316,13 @@ subroutine interpolate_atm2fire(id, & ! for debug output, <= 0 no
316
316
endif
317
317
7001 format (a,' dimensions ' ,a4,' :' ,i6,' to ' ,i6,' by ' ,i6,' to ' ,i6)
318
318
319
+ !**********************************************************
320
+ !* *
321
+ !* find the altitude of the w points *
322
+ !* *
323
+ !**********************************************************
324
+ !! in future, replace by z8w & test if the same
325
+
319
326
kdmax= kde-1 ! max layer to interpolate from, can be less
320
327
321
328
do j = jtst,jtet
@@ -339,6 +346,12 @@ subroutine interpolate_atm2fire(id, & ! for debug output, <= 0 no
339
346
!$OMP END CRITICAL(SFIRE_DRIVER_CRIT)
340
347
endif
341
348
349
+ !**********************************************************
350
+ !* *
351
+ !* interpolate the altitude from w points to u points *
352
+ !* *
353
+ !**********************************************************
354
+
342
355
do j = jtsu,jteu
343
356
do k= kds,kdmax+1
344
357
do i = itsu,iteu
@@ -364,6 +377,13 @@ subroutine interpolate_atm2fire(id, & ! for debug output, <= 0 no
364
377
call message(msg)
365
378
!$OMP END CRITICAL(SFIRE_DRIVER_CRIT)
366
379
endif
380
+
381
+ !**********************************************************
382
+ !* *
383
+ !* interpolate the altitude from w points to v points *
384
+ !* *
385
+ !**********************************************************
386
+
367
387
do j = jtsv,jtev
368
388
do k= kds,kdmax+1
369
389
do i = itsv,itev
@@ -385,6 +405,13 @@ subroutine interpolate_atm2fire(id, & ! for debug output, <= 0 no
385
405
#endif
386
406
logfwh = log (fire_wind_height)
387
407
408
+
409
+ !**********************************************************
410
+ !* *
411
+ !* interpolate u to the fire mesh at fire_wind_height *
412
+ !* *
413
+ !**********************************************************
414
+
388
415
! interpolate u, staggered in X
389
416
390
417
do j = jtsu,jteu ! compute on domain by 1 smaller, otherwise z0 and ph not available
@@ -415,6 +442,13 @@ subroutine interpolate_atm2fire(id, & ! for debug output, <= 0 no
415
442
enddo
416
443
enddo
417
444
445
+
446
+ !**********************************************************
447
+ !* *
448
+ !* interpolate v to the fire mesh at fire_wind_height *
449
+ !* *
450
+ !**********************************************************
451
+
418
452
! interpolate v, staggered in Y
419
453
420
454
do j = jtsv,jtev
0 commit comments