Changeset 130 for palm/trunk/SOURCE
- Timestamp:
- Nov 13, 2007 2:08:40 PM (17 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r129 r130 1 1 New: 2 2 --- 3 4 For unknown variables (CASE DEFAULT) call new subroutine user_data_output_dvrp 3 5 4 6 Pressure boundary conditions for vertical walls added to the multigrid solver. … … 11 13 advec_particles after the end of this loop. 12 14 13 advec_particles, check_parameters, header, init_grid, init_particles, init_pegrid, modules, package_parin, read_var_list, user_interface, write_var_list15 advec_particles, check_parameters, data_output_dvrp, header, init_grid, init_particles, init_pegrid, modules, package_parin, read_var_list, user_interface, write_var_list 14 16 15 17 16 18 Changed: 17 19 ------- 20 21 Allow two instead of one digit to specify isosurface and slicer variables. 18 22 19 23 Status of 3D-volume NetCDF data file only depends on switch netcdf_64bit_3d (check_open) … … 29 33 humidity/scalar/salinity in a future release. 30 34 31 check_open, d iffusion_s, modules, prognostic_equations35 check_open, data_output_dvrp, diffusion_s, header, init_dvrp, modules, prognostic_equations 32 36 33 37 -
palm/trunk/SOURCE/data_output_dvrp.f90
r106 r130 32 32 ! Actual revisions: 33 33 ! ----------------- 34 ! allow two instead of one digit to specify isosurface and slicer variables 35 ! for unknown variables (CASE DEFAULT) call new subroutine 36 ! user_data_output_dvrp 34 37 ! TEST: different colours for isosurfaces 35 38 ! TEST: write statements … … 116 119 !-- isosurfaces) 117 120 IF ( mode_dvrp(m)(1:10) == 'isosurface' ) THEN 118 READ ( mode_dvrp(m), '(10X,I 1)' ) vn121 READ ( mode_dvrp(m), '(10X,I2)' ) vn 119 122 output_variable = do3d(0,vn) 120 123 tv = tv + 1 121 124 ELSEIF ( mode_dvrp(m)(1:6) == 'slicer' ) THEN 122 READ ( mode_dvrp(m), '(6X,I 1)' ) vn125 READ ( mode_dvrp(m), '(6X,I2)' ) vn 123 126 output_variable = do2d(0,vn) 124 127 l = MAX( 2, LEN_TRIM( do2d(0,vn) ) ) … … 410 413 411 414 CASE DEFAULT 412 IF ( myid == 0 ) THEN 413 PRINT*,'+++ data_output_dvrp: no output possible for: ', & 414 output_variable 415 ENDIF 415 ! 416 !-- The DEFAULT case is reached either if output_variable contains 417 !-- unsupported variable or if the user has coded a special case in 418 !-- the user interface. There, the subroutine user_data_output_dvrp 419 !-- checks which of these two conditions applies. 420 CALL user_data_output_dvrp( output_variable, local_pf ) 421 416 422 417 423 END SELECT -
palm/trunk/SOURCE/header.f90
r117 r130 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! allow two instead of one digit to specify isosurface and slicer variables 6 7 ! Output of sorting frequency of particles 7 8 ! … … 866 867 DO WHILE ( mode_dvrp(i) /= ' ' ) 867 868 IF ( mode_dvrp(i)(1:10) == 'isosurface' ) THEN 868 READ ( mode_dvrp(i), '(10X,I 1)' ) j869 READ ( mode_dvrp(i), '(10X,I2)' ) j 869 870 l = l + 1 870 871 IF ( do3d(0,j) /= ' ' ) THEN … … 872 873 ENDIF 873 874 ELSEIF ( mode_dvrp(i)(1:6) == 'slicer' ) THEN 874 READ ( mode_dvrp(i), '(6X,I 1)' ) j875 READ ( mode_dvrp(i), '(6X,I2)' ) j 875 876 IF ( do2d(0,j) /= ' ' ) WRITE ( io, 362 ) TRIM( do2d(0,j) ) 876 877 ELSEIF ( mode_dvrp(i)(1:9) == 'particles' ) THEN -
palm/trunk/SOURCE/init_dvrp.f90
r83 r130 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! allow two instead of one digit to specify isosurface and slicer variables 6 7 ! Test output of isosurface on camera file 7 8 ! TEST: print* statements … … 395 396 IF ( mode_dvrp(pn)(1:10) == 'isosurface' ) THEN 396 397 397 READ ( mode_dvrp(pn), '(10X,I 1)' ) vn398 READ ( mode_dvrp(pn), '(10X,I2)' ) vn 398 399 steering_dvrp(pn)%name = do3d(0,vn) 399 400 tv = tv + 1 … … 417 418 ELSEIF ( mode_dvrp(pn)(1:6) == 'slicer' ) THEN 418 419 419 READ ( mode_dvrp(pn), '(6X,I 1)' ) vn420 READ ( mode_dvrp(pn), '(6X,I2)' ) vn 420 421 steering_dvrp(pn)%name = do2d(0,vn) 421 422 name_c = TRIM( do2d(0,vn) ) -
palm/trunk/SOURCE/user_interface.f90
r114 r130 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! new subroutine user_data_output_dvrp 6 7 ! +argument gls in user_init_grid 7 8 ! … … 833 834 834 835 836 SUBROUTINE user_data_output_dvrp( output_variable, local_pf ) 837 838 !------------------------------------------------------------------------------! 839 ! 840 ! Description: 841 ! ------------ 842 ! Execution of user-defined dvrp output 843 !------------------------------------------------------------------------------! 844 845 USE control_parameters 846 USE indices 847 USE pegrid 848 USE user 849 850 IMPLICIT NONE 851 852 CHARACTER (LEN=*) :: output_variable 853 854 INTEGER :: i, j, k 855 856 REAL, DIMENSION(nxl:nxr+1,nys:nyn+1,nzb:nz_do3d) :: local_pf 857 858 ! 859 !-- Here the user-defined DVRP output follows: 860 861 ! 862 !-- Move original array to intermediate array 863 SELECT CASE ( output_variable ) 864 865 ! CASE ( 'u2', 'u2_xy', 'u2_xz', 'u2_yz', ) 866 !! 867 !!-- Here the user can add user_defined output quantities. 868 !!-- Uncomment and extend the following lines, if necessary. 869 ! DO i = nxl, nxr+1 870 ! DO j = nys, nyn+1 871 ! DO k = nzb, nz_do3d 872 ! local_pf(i,j,k) = u2(k,j,i) 873 ! ENDDO 874 ! ENDDO 875 ! ENDDO 876 877 878 CASE DEFAULT 879 ! 880 !-- The DEFAULT case is reached if output_variable contains a 881 !-- wrong character string that is neither recognized in data_output_dvrp 882 !-- nor here in user_data_output_dvrp. 883 IF ( myid == 0 ) THEN 884 PRINT*,'+++ (user_)data_output_dvrp: no output possible for: ', & 885 output_variable 886 ENDIF 887 888 END SELECT 889 890 891 END SUBROUTINE user_data_output_dvrp 892 893 894 835 895 SUBROUTINE user_data_output_2d( av, variable, found, grid, local_pf ) 836 896
Note: See TracChangeset
for help on using the changeset viewer.