Changeset 3799 for palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm
- Timestamp:
- Mar 15, 2019 3:36:25 PM (6 years ago)
- Location:
- palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/bin/kpp4palm.ksh
r3780 r3799 40 40 # ----------------- 41 41 # $Id$ 42 # Removed edit of phot(nphot) for version edit phot(nphot), now done in fortran_file.C (15.03.2019, forkel) 43 # Editing with sed to add dummy statements toavoud unused variables 44 # 45 # 3780 2019-03-05 11:19:45Z forkel 42 46 # forkel 05. March 2019: cs_mech and set_cm 43 47 # forkel 30. Oktober 2018: Integrating contents of kp4_compress into chem_gasphase_mod.f90 … … 337 341 $BASE/bin/kpp4palm.exe $PREFIX $MODE $VLEN $DE_INDEX $DE_INDEX_FAST 338 342 339 #Prelimanary, substitution has to be moved into kpp4palm.exe 343 # Add dummy statements in order to prevent warnings due to unused variables 344 # 345 sed -i -e '/cfactor =/a ! ' kk_kpp.f90 346 sed -i -e '/cfactor =/a IF ( lu_crow(1) == 1 .OR. lu_icol(1) == 1 .OR. lu_irow(1) == 1 ) CONTINUE ' kk_kpp.f90 347 sed -i -e '/cfactor =/a ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 348 sed -i -e '/cfactor =/a ! ' kk_kpp.f90 349 340 350 if [[ $MODE = "vector" ]] 341 351 then 342 sed -i -e 's/phot(nphot/phot(vl_dim,nphot/g' kk_kpp.f90 343 fi 352 sed -i -e '/! Computation of equation rates/i ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 353 sed -i -e '/! Computation of equation rates/i IF ( f(vl,nfix) > 0.0_dp ) CONTINUE' kk_kpp.f90 354 sed -i -e '/! Computation of equation rates/i ! ' kk_kpp.f90 355 else 356 sed -i -e '/! Computation of equation rates/i ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 357 sed -i -e '/! Computation of equation rates/i IF ( f(nfix) > 0.0_dp ) CONTINUE' kk_kpp.f90 358 sed -i -e '/! Computation of equation rates/i ! ' kk_kpp.f90 359 fi 360 361 if [[ $MODE = "vector" ]] 362 then 363 sed -i -e '/REAL(kind=dp) :: b/a IF ( f(vl,nfix) > 0.0_dp ) CONTINUE' kk_kpp.f90 364 sed -i -e '/REAL(kind=dp) :: b/a ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 365 sed -i -e '/REAL(kind=dp):: b/a !' kk_kpp.f90 366 else 367 sed -i -e '/REAL(kind=dp):: b/a IF ( f(nfix) > 0.0_dp ) CONTINUE' kk_kpp.f90 368 sed -i -e '/REAL(kind=dp):: b/a ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 369 sed -i -e '/REAL(kind=dp):: b/a !' kk_kpp.f90 370 fi 371 372 sed -i -e '/one=1.0_dp/a IF ( incx == 0 ) CONTINUE' kk_kpp.f90 373 sed -i -e '/one=1.0_dp/a ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 374 sed -i -e '/one=1.0_dp/a ! ' kk_kpp.f90 375 376 sed -i -e '/IF (alpha .eq. zero)RETURN/i ! ' kk_kpp.f90 377 sed -i -e '/IF (alpha .eq. zero)RETURN/i ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 378 sed -i -e '/IF (alpha .eq. zero)RETURN/i IF ( incx == 0 .OR. incy == 0 ) CONTINUE' kk_kpp.f90 379 380 sed -i -e '/INTENT(INOUT):: b(n)/a IF ( pivot(1) == 0 ) CONTINUE' kk_kpp.f90 381 sed -i -e '/INTENT(INOUT):: b(n)/a ! Following line is just to avoid compiler message about unused variables' kk_kpp.f90 382 sed -i -e '/INTENT(INOUT):: b(n)/a ! ' kk_kpp.f90 344 383 345 384 if [[ -e $OUTDIR/${OUTFILE}.f90 ]] -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/create_kpp_module.C
r3797 r3799 9 9 // 10 10 // ############################################################################ 11 //12 //Current revisions:13 //------------------14 11 // 15 12 // 16 13 //Former revisions: 17 14 //----------------- 18 //$Id: create_kpp_module.C 3453 2018-10-30 13:21:51Z forkel $ 15 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 16 // 19 17 // OpenMP version (15.03.2019, ketelsen) 20 18 // … … 199 197 generate_module_header(); 200 198 201 // create_set_cs199 // Create subroutine to communicate mechanism name to other modules 202 200 create_set_cs(); 203 201 -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/create_kpp_module.h
r3780 r3799 18 18 // Former revisions: 19 19 // ----------------------- 20 // $Id$ 21 // forkel 22.02.2019: Added create_set_cs 22 // ketelsen 18.09.2018: Removed create_fill_routine 20 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 21 // 22 // Added create_set_cs (22.02.2019, forkel) 23 // 24 // Removed create_fill_routine (18.09.2018, ketelsen) 23 25 // 24 26 // initial version (Nov. 2016, ketelsen) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/expand_decomp.C
r3789 r3799 9 9 // 10 10 // ############################################################################ 11 //Current revisions:12 //------------------13 11 // 14 12 // 15 13 // Former revisions: 16 14 // ----------------------- 17 // $Id: expand_decomp.C 3327 2018-10-09 19:55:00Z forkel $15 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 18 16 // 19 17 // Added switch for de-indexing == 2 (W is not needed then) (08.03.2019, forkel) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/expand_decomp.h
r3458 r3799 11 11 // 12 12 // ############################################################################ 13 //Current revisions:14 //------------------15 13 // 16 14 // 17 15 // Former revisions: 18 16 // ----------------------- 19 // $Id: expand_decomp.h 3327 2018-10-09 19:55:00Z forkel $17 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 20 18 // 21 19 // initial version (Nov. 2016, ketelsen) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/fortran_file.C
r3797 r3799 11 11 // 12 12 // 13 //Current revisions:14 //------------------15 //16 //17 13 //Former revisions: 18 14 //----------------- 19 //$Id: 15 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 16 // 17 // For vector version edit phot(nphot) - was before done in kpp4pal.ksh (15.03.2019, forkel) 18 // 20 19 // OpenMP version (15.03.2019, ketelsen) 21 20 // … … 676 675 // Replace Roundoff = WLAMCH('E') since WLAMCH does not work everywhere 677 676 ip->global_substitute("Roundoff = WLAMCH('E')","roundoff = epsilon(one)"); 677 // For vector version edit phot(nphot) from INLINE in chem_gasphase_mod.kpp 678 if(kpp_switches.is_vector()) { 679 ip->global_substitute("phot(nphot)","phot(vl_dim,nphot)"); 680 } 678 681 679 682 // Now do some cosmetics to adapt the KPP generated output a bit o the looks of PALM, -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/fortran_file.h
r3458 r3799 12 12 // ############################################################################ 13 13 // 14 //Current revisions:15 //------------------16 //17 14 // 18 15 // Former revisions: 19 16 // ----------------------- 20 // $Id: fortran_file.h 3327 2018-10-09 19:55:00Z forkel $17 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 21 18 // 22 19 // added edit_Initialize (Sept.2018, forkel) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/main.C
r3458 r3799 4 4 // create_mz_kpp_module 5 5 // 6 // create scalar code from .f90 sources created by KPP to be used in MESSy6 // create scalar code from .f90 sources created by KPP to be used in PALM4U 7 7 // 8 // COPYRIGHT Klaus Ketelsen and MPI-CH April 2007 8 // COPYRIGHT Klaus Ketelsen and MPI-CH April 2007, 9 // Klaus Ketelsen, 2016 9 10 // 10 11 // ############################################################################ 11 12 // 12 //Current revisions:13 //------------------14 //15 //16 13 // Former revisions: 17 14 // ----------------------- 18 // $Id: main.C 3327 2018-10-09 19:55:00Z forkel $15 // Deleded $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 19 16 // 20 17 // initial version (Nov. 2016, ketelsen) … … 35 32 36 33 cout << "####################################################" <<endl ; 37 cout << "### KP4= KPP POST PROCESSOR ###" <<endl ;38 cout << "### 34 cout << "### KPP4PALM = KPP POST PROCESSOR ###" <<endl ; 35 cout << "### KP4 Version 1.0 ###" <<endl ; 39 36 cout << "### (C) by Klaus Ketelsen and MPI-CH, April 2007 ###" <<endl ; 37 cout << "### KPP4PALM ###" <<endl ; 38 cout << "### (C) by Klaus Ketelsen, November 2016 ###" <<endl ; 40 39 cout << "####################################################" <<endl ; 41 40 … … 71 70 72 71 cout << "####################################################" <<endl ; 73 cout << "### END OF KP 4###" <<endl ;72 cout << "### END OF KPP4PALM ###" <<endl ; 74 73 cout << "####################################################" <<endl ; 75 74 -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/program_line.C
r3458 r3799 10 10 // ############################################################################ 11 11 // 12 //Current revisions:13 //------------------14 //15 12 // 16 13 // Former revisions: 17 14 // ----------------------- 18 // $Id: program_line.C 3327 2018-10-09 19:55:00Z forkel $15 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 19 16 // 20 17 // global_subtolower (June 2018, forkel) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/program_line.h
r3458 r3799 12 12 // ############################################################################ 13 13 // 14 //Current revisions:15 //------------------16 //17 14 // 18 15 // Former revisions: 19 16 // ----------------------- 20 // $Id: program_line.h 3327 2018-10-09 19:55:00Z forkel $17 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 21 18 // 22 19 // added void global_subtolower(string &line); (June 2018, forkel) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/utils.C
r3458 r3799 10 10 // ############################################################################ 11 11 // 12 //Current revisions:13 //------------------14 //15 12 // 16 13 // Former revisions: 17 14 // ----------------------- 18 // $Id: utils.C 3327 2018-10-09 19:55:00Z forkel $15 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 19 16 // 20 17 // initial version (Nov. 2016, ketelsen) -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/utils.h
r3458 r3799 12 12 // ############################################################################ 13 13 // 14 //Current revisions:15 //------------------16 //17 14 // 18 15 // Former revisions: 19 16 // ----------------------- 20 // $Id: utils.h 3327 2018-10-09 19:55:00Z forkel $17 // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) 21 18 // 22 19 // initial version (Nov. 2016, ketelsen)
Note: See TracChangeset
for help on using the changeset viewer.