#212: option --removeFunction fails in preProcess.py ------------------------------+--------------------------------------------- Reporter: lyonsam | Owner: utke Type: defect | Status: new Priority: major | Milestone: scale1 Component: SourceProcessing | Keywords: ------------------------------+--------------------------------------------- This flag is supposed to discard function definitions that are subroutinized, leaving only the new subroutine. The problem reveals itself when you try this flag on SCALE: {{{ lyonsam@churn:/sandbox/lyonsam/hgBranch/vecOp_Scale/Scale/scale6-new/src/mods/ [15:43:10]$ make # ================================================= PREPROCESS ================================================= /sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/preProcess.py --timing --inputFormat=free --outputFormat=free --removeFunction -o numCore1.pre.f90 scalelib/Vast_kind_param_M.f90 scalelib/wot8_I.f90 scalelib/ki3_I.f90 scalelib/cmps_I.f90 scalelib/jll1_I.f90 scalelib/mwlist_I.f90 scalelib/e3_I.f90 scalelib/e3.f90 scalelib/erf_M.f90 scalelib/shelc_I.f90 scalelib/shelc.f90 scalelibDummies/Vtime_M.f90 scalelibDummies/common_unit_C.f90 scalelibDummies/erro_I.f90 scalelibDummies/Error_functions_M.f90 scalelibDummies/direct_access_M.f90 scalelibDummies/fido_M.f90 scalelibDummies/fill_M.f90 scalelibDummies/ffpun_I.f90 scalelibDummies/io_I.f90 scalelibDummies/mgcwrd_M.f90 scalelibDummies/separator_character_M.f90 scalelibDummies/opnfil_I.f90 centrmDummies/pxretrv_I.f90 centrmDummies/pxlib_read_M.f90 centrmDummies/calcrng_I.f90 centrmDummies/xtract_I.f90 centrm/data_centrm_C.f90 centrm/pesc_I.f90 centrm/asym_flx_I.f90 centrm/balanc_C.f90 centrm/dflt_C.f90 centrm/drtacs_centrm_C.f90 centrm/inels2_C.f90 centrm/prbttl_C.f90 centrm/pxdata_C.f90 centrm/pxparm_C.f90 centrm/sources_C.f90 centrm/terp_M.f90 centrm/thermal_C.f90 centrm/tots_C.f90 centrm/units_C.f90 centrm/rebaln_I.f90 centrm/accel_I.f90 centrm/cell_I.f90 centrm/clean_I.f90 centrm/convrg_I.f90 centrm/cumintn_I.f90 centrm/difcof_I.f90 centrm/drevers_I.f90 centrm/dt_I.f90 centrm/fitter_I.f90 centrm/gcoef_M.f90 centrm/getdfc_I.f90 centrm/getins_I.f90 centrm/h_factors_M.f90 centrm/w_factors_M.f90 centrm/inelas_I.f90 centrm/inner_I.f90 centrm/revers_I.f90 centrm/linrzq_I.f90 centrm/scatsc_I.f90 centrm/mgsrc_I.f90 centrm/mgsum_I.f90 centrm/nchi_I.f90 centrm/nmspt_I.f90 centrm/postn_I.f90 centrm/prepout_I.f90 centrm/vintn_I.f90 centrm/vintni_I.f90 centrm/pxbs_I.f90 centrm/prepxc_I.f90 centrm/psget_I.f90 centrm/pxcon1_I.f90 centrm/pxcon2_I.f90 centrm/pxsec_I.f90 centrm/pxseci_I.f90 centrm/pxsormt_I.f90 centrm/pxtsor_I.f90 centrm/initial_I.f90 centrm/firstp_I.f90 centrm/range_M.f90 centrm/flxguess_I.f90 centrm/rittemp_I.f90 centrm/setcons_I.f90 centrm/setmbyz_I.f90 centrm/storxs_I.f90 centrm/sumbal_I.f90 centrm/thinit_I.f90 centrm/thtolmr_I.f90 centrm/thermit_I.f90 centrm/update_I.f90 centrm/clear_dflt_I.f90 centrm/evap_I.f90 centrm/pxsorm_I.f90 centrm/pxcal_I.f90 centrm/pxtomg_I.f90 centrm/epitoth_I.f90 centrm/fixsrc_I.f90 centrm/geomf_I.f90 centrm/zhomo_I.f90 centrm/solver_I.f90 centrm/pxbound_I.f90 centrm/pxget.f90 centrm/pxzas_I.f90 centrm/zmsh_I.f90 centrm/pw_chi_I.f90 centrm/lumper_I.f90 centrm/linriz_I.f90 centrm/pxpts_I.f90 centrm/pxread_I.f90 centrm/free_gas_M.f90 centrm/pxsset_I.f90 centrm/united_I.f90 centrm/emsh_I.f90 centrm/calc_I.f90 centrm/pxarr_I.f90 centrm/mix_centrm_I.f90 centrm/getmom_I.f90 centrmDummies/prtf_I.f90 centrmDummies/wrtf_I.f90 centrm/mgout_I.f90 centrmDummies/redf_I.f90 centrmDummies/quadrature_M.f90 centrmDummies/pncnst_I.f90 centrmDummies/mgarr_I.f90 centrmDummies/drtran_I.f90 centrmDummies/contrl_I.f90 Traceback (most recent call last): File "/sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/preProcess.py", line 293, in <module> sys.exit(main()) File "/sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/preProcess.py", line 220, in main UnitCanonicalizer(aUnit).canonicalizeUnit().printit(out) File "/sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/Canon/canon.py", line 694, in canonicalizeUnit newUnit = UnitCanonicalizer(subUnit,self.__SRmoduleUsed).canonicalizeUnit() File "/sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/Canon/canon.py", line 724, in canonicalizeUnit self.__myUnit = self.__createNewSubroutine(self.__myUnit,subroutineDecls) File "/sandbox/lyonsam/hgBranch/vecOp_Scale/OpenAD/OpenADFortTk/tools/SourceProcessing/Canon/canon.py", line 640, in __createNewSubroutine aUnit,self.__myNewExecs,declList,self._keepFunctionDecl) NameError: global name 'declList' is not defined make: *** [numCore1.pre.f90] Error 1 }}} -- Ticket URL: <https://trac.mcs.anl.gov/projects/openAD/ticket/212> OpenAD <http://www.mcs.anl.gov/openad> Bug tracking for OpenAD components