Changeset 170 for palm/trunk/SOURCE
- Timestamp:
- May 22, 2008 12:51:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/read_var_list.f90
r159 r170 583 583 584 584 INTEGER :: idum, max_pr_user_on_file, nz_on_file, & 585 statistic_regions_on_file 585 statistic_regions_on_file, tmp_mpru, tmp_sr 586 586 587 587 REAL, DIMENSION(:,:,:), ALLOCATABLE :: hom_sum_on_file … … 645 645 ENDIF 646 646 READ ( 13 ) max_pr_user_on_file 647 IF ( max_pr_user_on_file >max_pr_user ) THEN647 IF ( max_pr_user_on_file /= max_pr_user ) THEN 648 648 IF ( myid == 0 ) THEN 649 PRINT*, '+++ read_parts_of_var_list: too manyuser profiles on res', &650 'tart data file '649 PRINT*, '+++ read_parts_of_var_list: number of user profiles on res', & 650 'tart data file differs from the current run' 651 651 PRINT*, ' max_pr_user on file = "', & 652 652 max_pr_user_on_file, '"' … … 654 654 max_pr_user, '"' 655 655 ENDIF 656 CALL local_stop 656 tmp_mpru = MIN( max_pr_user_on_file, max_pr_user ) 657 ELSE 658 tmp_mpru = max_pr_user 657 659 ENDIF 658 660 … … 666 668 IF ( statistic_regions_on_file > statistic_regions ) THEN 667 669 IF ( myid == 0 ) THEN 668 PRINT*, '+++ read_parts_of_var_list: too many statistic regions on', & 669 ' restart data file' 670 PRINT*, ' statistic regions on file = "', & 671 max_pr_user_on_file, '"' 672 PRINT*, ' statistic regions from run = "', & 673 max_pr_user, '"' 670 PRINT*, '+++ read_parts_of_var_list: WARNING: statistic regions on', & 671 ' restart data file differ from the current run' 672 PRINT*, ' statistic regions on file = "', & 673 statistic_regions_on_file, '"' 674 PRINT*, ' statistic regions from run = "', & 675 statistivc_regions, '"' 676 PRINT*, ' statistic data may be lost!' 674 677 ENDIF 675 CALL local_stop 678 tmp_sr = MIN( statistic_regions_on_file, statistic_regions ) 679 ELSE 680 tmp_sr = statistic_regions 676 681 ENDIF 677 682 … … 703 708 0:statistic_regions_on_file) ) 704 709 READ ( 13 ) hom_on_file 705 hom = hom_on_file(:,:,1:pr_palm+max_pr_user,0:statistic_regions) 710 hom(:,:,1:pr_palm+tmp_mpru,0:tmp_sr) = & 711 hom_on_file(:,:,1:pr_palm+tmp_mpru,0:tmp_sr) 706 712 DEALLOCATE( hom_on_file ) 707 713 … … 710 716 0:statistic_regions_on_file) ) 711 717 READ ( 13 ) hom_sum_on_file 712 hom_sum = hom_sum_on_file(:,1:pr_palm+max_pr_user,&713 0:statistic_regions)718 hom_sum(:,1:pr_palm+tmp_mpru,0:tmp_sr) = & 719 hom_sum_on_file(:,1:pr_palm+tmp_mpru,0:tmp_sr) 714 720 DEALLOCATE( hom_sum_on_file ) 715 721
Note: See TracChangeset
for help on using the changeset viewer.