Changeset 3582 for palm/trunk/SOURCE/chem_emissions_mod.f90
- Timestamp:
- Nov 29, 2018 7:16:36 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE
- Property svn:mergeinfo changed
/palm/branches/salsa/SOURCE merged: 3493,3503-3504,3519,3566,3576
- Property svn:mergeinfo changed
-
palm/trunk/SOURCE/chem_emissions_mod.f90
r3570 r3582 22 22 ! Current revisions: 23 23 ! ------------------ 24 ! 24 ! - Removed salsa dependency. 25 ! - Enabled PARAMETRIZED mode for default surfaces when LSM is not applied but 26 ! salsa is (M. Kurppa) 25 27 ! 26 28 ! Former revisions: … … 890 892 USE indices, & 891 893 ONLY: nnx,nny,nnz 892 USE salsa_mod, &893 ONLY: salsa894 894 USE surface_mod, & 895 895 ONLY: surf_lsm_h,surf_def_h,surf_usm_h … … 1462 1462 1463 1463 ENDDO 1464 ELSEIF ( salsa ) THEN1465 DO m = 1, surf_def_h(0)%ns1466 i = surf_def_h(0)%i(m)1467 j = surf_def_h(0)%j(m)1468 k = surf_def_h(0)%k(m)1469 1470 1471 IF ( street_type_f%var(j,i) >= main_street_id .AND. &1472 street_type_f%var(j,i) < max_street_id ) &1473 THEN1474 1475 !> Cycle over already matched species1476 DO ispec=1,nspec_out1477 1478 !> PMs are already in mass units:micrograms: have to be converted to kilograms1479 IF ( TRIM(spc_names(match_spec_model(ispec)))=="PM1" &1480 .OR. TRIM(spc_names(match_spec_model(ispec)))=="PM25" &1481 .OR. TRIM(spc_names(match_spec_model(ispec)))=="PM10")&1482 THEN1483 1484 surf_def_h(0)%cssws(match_spec_model(ispec),m) = &1485 emiss_factor_main(match_spec_input(ispec)) * &1486 emis_distribution(1,j,i,ispec) * rho_air(k) /&1487 time_factor(1)1488 ELSE1489 1490 !> Other Species: inputs are micromoles: have to be converted1491 surf_def_h(0)%cssws(match_spec_model(ispec),m) = &1492 emiss_factor_main(match_spec_input(ispec)) * &1493 emis_distribution(1,j,i,ispec) * &1494 conv_to_ratio(k,j,i) * rho_air(k) / time_factor(1)1495 ENDIF1496 ENDDO1497 1498 ELSEIF ( street_type_f%var(j,i) >= side_street_id .AND. &1499 street_type_f%var(j,i) < main_street_id ) &1500 THEN1501 1502 !> Cycle over already matched species1503 DO ispec=1,nspec_out1504 1505 !> PMs are already in mass units: micrograms1506 IF ( TRIM(spc_names(match_spec_model(ispec)))=="PM1" &1507 .OR. TRIM(spc_names(match_spec_model(ispec)))=="PM25" &1508 .OR. TRIM(spc_names(match_spec_model(ispec)))=="PM10")&1509 THEN1510 1511 surf_def_h(0)%cssws(match_spec_model(ispec),m) = &1512 emiss_factor_side(match_spec_input(ispec)) * &1513 emis_distribution(1,j,i,ispec) * rho_air(k) / &1514 time_factor(1)1515 ELSE1516 1517 surf_def_h(0)%cssws(match_spec_model(ispec),m) = &1518 emiss_factor_side(match_spec_input(ispec)) * &1519 emis_distribution(1,j,i,ispec) * &1520 conv_to_ratio(k,j,i) * rho_air(k) / time_factor(1)1521 ENDIF1522 1523 ENDDO1524 1525 ELSE1526 1527 !> If no street type is defined, then assign null emissions to all the species1528 surf_def_h(0)%cssws(:,m) = 0.0_wp1529 1530 ENDIF1531 1532 ENDDO1533 1534 1464 ENDIF 1535 1465
Note: See TracChangeset
for help on using the changeset viewer.