Changeset 3646 for palm/trunk/SOURCE/time_integration.f90
- Timestamp:
- Dec 28, 2018 5:58:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/time_integration.f90
r3634 r3646 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix: use time_since_reference_point instead of simulated_time where 28 ! required (relevant when using wall/soil spinup) 29 ! 30 ! 3634 2018-12-18 12:31:28Z knoop 27 31 ! OpenACC port for SPEC 28 32 ! … … 915 919 !-- to regard droplet interactions directly 916 920 IF ( particle_advection .AND. & 917 simulated_time>= particle_advection_start .AND. &921 time_since_reference_point >= particle_advection_start .AND. & 918 922 intermediate_timestep_count == 1 ) THEN 919 923 CALL lpm … … 1424 1428 1425 1429 1426 IF ( simulated_time>= skip_time_data_output_av ) THEN1430 IF ( time_since_reference_point >= skip_time_data_output_av ) THEN 1427 1431 time_do_av = time_do_av + dt_3d 1428 1432 ENDIF 1429 IF ( simulated_time>= skip_time_do2d_xy ) THEN1433 IF ( time_since_reference_point >= skip_time_do2d_xy ) THEN 1430 1434 time_do2d_xy = time_do2d_xy + dt_3d 1431 1435 ENDIF 1432 IF ( simulated_time>= skip_time_do2d_xz ) THEN1436 IF ( time_since_reference_point >= skip_time_do2d_xz ) THEN 1433 1437 time_do2d_xz = time_do2d_xz + dt_3d 1434 1438 ENDIF 1435 IF ( simulated_time>= skip_time_do2d_yz ) THEN1439 IF ( time_since_reference_point >= skip_time_do2d_yz ) THEN 1436 1440 time_do2d_yz = time_do2d_yz + dt_3d 1437 1441 ENDIF 1438 IF ( simulated_time>= skip_time_do3d ) THEN1442 IF ( time_since_reference_point >= skip_time_do3d ) THEN 1439 1443 time_do3d = time_do3d + dt_3d 1440 1444 ENDIF 1441 1445 DO mid = 1, masks 1442 IF ( simulated_time>= skip_time_domask(mid) ) THEN1446 IF ( time_since_reference_point >= skip_time_domask(mid) ) THEN 1443 1447 time_domask(mid)= time_domask(mid) + dt_3d 1444 1448 ENDIF 1445 1449 ENDDO 1446 1450 time_dvrp = time_dvrp + dt_3d 1447 IF ( simulated_time>= skip_time_dosp ) THEN1451 IF ( time_since_reference_point >= skip_time_dosp ) THEN 1448 1452 time_dosp = time_dosp + dt_3d 1449 1453 ENDIF … … 1452 1456 time_dopts = time_dopts + dt_3d 1453 1457 ENDIF 1454 IF ( simulated_time>= skip_time_dopr ) THEN1458 IF ( time_since_reference_point >= skip_time_dopr ) THEN 1455 1459 time_dopr = time_dopr + dt_3d 1456 1460 ENDIF … … 1460 1464 !-- Increment time-counter for surface output 1461 1465 IF ( surface_data_output ) THEN 1462 IF ( simulated_time>= skip_time_dosurf ) THEN1466 IF ( time_since_reference_point >= skip_time_dosurf ) THEN 1463 1467 time_dosurf = time_dosurf + dt_3d 1464 1468 ENDIF 1465 IF ( simulated_time>= skip_time_dosurf_av ) THEN1469 IF ( time_since_reference_point >= skip_time_dosurf_av ) THEN 1466 1470 time_dosurf_av = time_dosurf_av + dt_3d 1467 1471 ENDIF … … 1552 1556 IF ( averaging_interval_pr /= 0.0_wp .AND. & 1553 1557 ( dt_dopr - time_dopr ) <= averaging_interval_pr .AND. & 1554 simulated_time>= skip_time_dopr ) THEN1558 time_since_reference_point >= skip_time_dopr ) THEN 1555 1559 time_dopr_av = time_dopr_av + dt_3d 1556 1560 IF ( time_dopr_av >= dt_averaging_input_pr ) THEN … … 1566 1570 IF ( averaging_interval /= 0.0_wp .AND. & 1567 1571 ( dt_data_output_av - time_do_av ) <= averaging_interval .AND. & 1568 simulated_time>= skip_time_data_output_av ) &1572 time_since_reference_point >= skip_time_data_output_av ) & 1569 1573 THEN 1570 1574 time_do_sla = time_do_sla + dt_3d … … 1580 1584 IF ( averaging_interval_surf /= 0.0_wp .AND. & 1581 1585 ( dt_dosurf_av - time_dosurf_av ) <= averaging_interval_surf & 1582 .AND. simulated_time>= skip_time_dosurf_av ) THEN1586 .AND. time_since_reference_point >= skip_time_dosurf_av ) THEN 1583 1587 IF ( time_dosurf_av >= dt_averaging_input ) THEN 1584 1588 CALL surface_output_averaging … … 1592 1596 IF ( averaging_interval_sp /= 0.0_wp .AND. & 1593 1597 ( dt_dosp - time_dosp ) <= averaging_interval_sp .AND. & 1594 simulated_time>= skip_time_dosp ) THEN1598 time_since_reference_point >= skip_time_dosp ) THEN 1595 1599 time_dosp_av = time_dosp_av + dt_3d 1596 1600 IF ( time_dosp_av >= dt_averaging_input_pr ) THEN … … 1706 1710 IF ( particle_advection ) THEN 1707 1711 IF ( time_dopts >= dt_dopts .OR. & 1708 ( simulated_time>= particle_advection_start .AND. &1712 ( time_since_reference_point >= particle_advection_start .AND. & 1709 1713 first_call_lpm ) ) THEN 1710 1714 CALL data_output_ptseries
Note: See TracChangeset
for help on using the changeset viewer.