Changeset 3789 for palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm
- Timestamp:
- Mar 8, 2019 6:04:30 PM (6 years ago)
- Location:
- palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/create_kpp_module.C
r3780 r3789 17 17 //----------------- 18 18 //$Id: create_kpp_module.C 3453 2018-10-30 13:21:51Z forkel $ 19 // Added vector switch Kacc,Krej,IERRV, Commented add_line for istatf, (05.03.2019, forkel) 20 // added ,pe after ierr_u, 21 // 19 22 // Added create_set_cs and cs_mech and get_mechanismname in module_header (05.03.2019, forkel) 20 23 // … … 436 439 mz_kpp.add_line(" "); 437 440 mz_kpp.add_line(" "); 438 mz_kpp.add_line(" integer, dimension(VL_dim) :: Kacc,Krej "); 439 mz_kpp.add_line(" integer, dimension(VL_dim) :: IERRV "); 441 if(kpp_switches.is_vector()) { 442 mz_kpp.add_line(" integer, dimension(VL_dim) :: Kacc,Krej "); 443 mz_kpp.add_line(" integer, dimension(VL_dim) :: IERRV "); 444 } 440 445 mz_kpp.add_line(" logical :: data_loaded = .false. "); 441 442 446 in.close(); 443 447 … … 535 539 kppi.add_line(" integer, dimension(20) :: istatus_u "); 536 540 kppi.add_line(" integer :: ierr_u "); 537 541 // kppi.add_line(" integer :: istatf "); 538 542 kppi.add_line(" integer :: vl_dim_lo "); 539 543 kppi.add_line(" "); … … 599 603 } else { 600 604 kppi.add_line(" IF (PRESENT(l_debug) .AND. PRESENT(PE)) THEN "); 601 kppi.add_line(" IF (l_debug) CALL error_output(Conc(is,:),ierr_u, PE)");605 kppi.add_line(" IF (l_debug) CALL error_output(Conc(is,:),ierr_u,pe) "); 602 606 kppi.add_line(" ENDIF "); 603 607 kppi.add_line(" "); -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/expand_decomp.C
r3458 r3789 17 17 // $Id: expand_decomp.C 3327 2018-10-09 19:55:00Z forkel $ 18 18 // 19 // initial version (Nov. 2016, ketelsen) 19 // Added switch for de-indexing == 2 (W is not needed then) (08.03.2019, forkel) 20 // commented add_line for 'INTEGER :: k, kk, j, jj' which 21 // only needed for de-indexing == 0 22 // 23 // initial version (Nov. 2016, ketelsen) 20 24 21 25 … … 197 201 de.add_line (" INTEGER :: IER "); 198 202 // de.add_line (" REAL ( kind=dp ) :: JVS (:), W ( NVAR ), a "); 199 de.add_line (" REAL ( kind=dp ) :: JVS ( LU_NONZERO ), W ( NVAR ), a "); 200 de.add_line (" INTEGER :: k, kk, j, jj "); 203 if( kpp_switches.de_indexing () == 2 ) { 204 de.add_line (" REAL ( kind=dp ) :: JVS ( LU_NONZERO ), a "); 205 } else { 206 de.add_line (" REAL ( kind=dp ) :: JVS ( LU_NONZERO ), W ( NVAR ), a "); 207 } 208 // Commented, k, kk, j, jj are only required if de_indexing == 0, which is not handled here 209 // de.add_line (" INTEGER :: k, kk, j, jj "); 201 210 de.add_line (" "); 202 211 de.add_line (" a = 0. "); -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/fortran_file.C
r3458 r3789 19 19 //$Id: 20 20 // 21 // removal of unnecessary variables (Ntotal, TSTART) (08.03.2019 forkel) 22 // 21 23 // Added vector switch and creation of dimension statement (rev. 3260, 18.09.2018, ketelsen) 22 24 // … … 167 169 } 168 170 171 // Remove Ntotal since it is unused 172 173 if(ip->get_token(3) == "Ntotal") { 174 lo_line.insert(0,"!DELETE "); 175 cout << lo_line << endl; 176 } 177 178 169 179 170 180 ip->set_line(lo_line); … … 390 400 391 401 if(ip->get_token_number_from_string("RTOLS") > 0) { 402 cout << lo_line << endl; 403 lo_line.insert(0,"!DELETE "); 404 cout << lo_line << endl; 405 } 406 407 // Remove TSTART 408 409 if(ip->get_token_number_from_string("TSTART") > 0) { 392 410 cout << lo_line << endl; 393 411 lo_line.insert(0,"!DELETE "); -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/fortran_file_vec.C
r3458 r3789 17 17 //----------------------- 18 18 //$Id: fortran_file_vec.C 3327 2018-10-09 19:55:00Z forkel $ 19 // Added vector switch for INTEGER :: j,k (08.03.2019, forkel) 20 // 19 21 // Line 112: do k=is,ie bydo k=1,vl; line 156 ff: replaced index k by j (18.09.2018, ketelsen) 20 22 // … … 169 171 lo_line = ip->get_line() ; 170 172 lo_line.erase(); 171 lo_line = " INTEGER :: j,k"; 173 if(kpp_switches.is_vector() ) { 174 lo_line = " INTEGER :: j,k"; 175 } else { 176 lo_line = " INTEGER :: k"; 177 } 172 178 ip->set_line(lo_line); 173 179 -
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/templates/initialize_kpp_ctrl_template.f90
r3298 r3789 91 91 REAL(dp), DIMENSION(:),INTENT(IN) :: C 92 92 93 write(6,*) 'ERROR in chem_gasphase_mod ',ierr,C(1) 93 write(6,*) 'ERROR in chem_gasphase_mod ',ierr,C(1),PE 94 94 95 95
Note: See TracChangeset
for help on using the changeset viewer.