<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 14, 2015 at 3:31 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hm - for one - we rely on ~/.petscrc for our nightly builds.<br>
<br>
petsc@petsc:~$ cat ~/.petscrc<br>
-malloc_dump<br>
-display 140.221.10.20:0.0<br>
#-nox<br>
#-nox_warning<br>
petsc@petsc:~$<br></blockquote><div><br></div><div>We can move these to the environment variable. I did this for myself already.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And secondly we have an option -skip_petscrc that would skip it.<br></blockquote><div><br></div><div>I agree this is sensible, and that having that option is idiotic. I am also very</div><div>willing to believe that many of our users are idiots, and we sometimes need</div><div>to cripple the design for this reason.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
using "-pc_type_hypre" in ~/.petscrc is a bad practice. [it makes<br>
sense only for global options that are useful for multiple petsc<br>
applications - like -malloc_dump]<br>
<br>
We also read in $PWD/.petscrc and $PWD/petscrc<br>
<br>
Satish<br>
<div><div class="h5"><br>
On Tue, 14 Apr 2015, Barry Smith wrote:<br>
<br>
><br>
> Mark,<br>
><br>
> Ok, you convinced me.<br>
><br>
> Satish,<br>
><br>
> Can you please rip out all the checking for .petscrc in the home directory.<br>
><br>
> Thanks<br>
><br>
> Barry<br>
><br>
> Theoretically it is a great feature but no one uses it and those who do use it forget that they used it.<br>
><br>
> > On Apr 14, 2015, at 7:41 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br>
> ><br>
> > PETSc's design of looking for RC files in the users home directory really sucks. I've complained about this before a few years ago and am going to again.<br>
> ><br>
> > A perfectly reasonable apps person had a .petscrc file in his home directory with at "%-pc_type_hypre" in it. This gave an error but he could not figure out where PETSc got this thing. (The error message was garbled for some reason, which slowed things down. As soon as I saw "%-pc_type_hypre" I knew what the problem was.) As you can see below he spent a day doing this.<br>
> ><br>
> > I spent a day with another apps person on this same project a few years ago with this same problem. This is an error prone construct and it does not show up until you have used PETSc for a few years and have forgotten that you have a .petscrc file in your home directory. Very bad.<br>
> ><br>
> > Also, this code specified that RC file name as "petsc.rc". It looks like PETSc is still picking up a .petscrc file anyway!!! At the very least we should scrub ".petscrc" if the user supplies another name.<br>
> ><br>
> > I think we should dump this design and stop looking at home directories and just tell users to change, as we always do when we improve the design.<br>
> ><br>
> > Thanks,<br>
> > Mark<br>
> ><br>
> ><br>
> > ---------- Forwarded message ----------<br>
> > From: Yoon, Eisung <<a href="mailto:yoone@rpi.edu">yoone@rpi.edu</a>><br>
> > Date: Mon, Apr 13, 2015 at 11:00 PM<br>
> > Subject: RE: related to compiling your source code<br>
> > To: Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>>, Robert Hager <<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>><br>
> > Cc: Choong-Seock Chang <<a href="mailto:cschang@pppl.gov">cschang@pppl.gov</a>>, Mark Shephard <<a href="mailto:shephard@rpi.edu">shephard@rpi.edu</a>>, Seung-Hoe Ku <<a href="mailto:sku@pppl.gov">sku@pppl.gov</a>><br>
> ><br>
> ><br>
> > --------<br>
> > WARNING: At least one of the links in the message below goes to an IP address (e.g.10.1.1.1), which could be malicious. To learn how to protect yourself, please go here: <a href="https://commons.lbl.gov/x/_591B" target="_blank">https://commons.lbl.gov/x/_591B</a><br>
> > --------<br>
> ><br>
> > Dear Mark and Robert,<br>
> ><br>
> > Wow! Thank you so much for all your comments and helps. After I spent a whole day, I am about to give up resolving this issue.<br>
> ><br>
> > I confirmed that the file which has %-pc_type hypre is located at my home directory! But the file name caused the problem is not petsc.rc but .petscrc, which I guess I copied a long time ago. The source code directory where the XGC execution file is located has a petsc.rc which does not contain %-pc_type hypre and does not have .petscrc file in the directory.<br>
> ><br>
> > In summary, three directories were involved for running XGC; A source code directory where the XGC execution file is located, working directory where job is submitted, and just my home directory. And the problem was from my home directory.<br>
> ><br>
> > In addition, it is quite interesting that petscinitialize subroutine passes "./petsc.rc" in the XGC source code, while petsc tried to find a DEFAULT file ".petscrc" in my HOME directory!!!<br>
> ><br>
> > I currently have removed .petscrc and submitted the job to see if XGC runs.<br>
> ><br>
> > Best,<br>
> > Eisung Yoon<br>
> ><br>
> > From: Mark Adams [<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>]<br>
> > Sent: Monday, April 13, 2015 10:19 PM<br>
> > To: Robert Hager<br>
> > Cc: Yoon, Eisung; Choong-Seock Chang; Mark Shephard; Seung-Hoe Ku<br>
> ><br>
> > Subject: Re: related to compiling your source code<br>
> ><br>
> > Good try Robert :)<br>
> ><br>
> > I'll bet Eisung has a petsc.rc file in his home directory. Let me know. I will use this as another data point to support my opinion that looking in your home directory is a bad idea.<br>
> ><br>
> > BTW, Seung-Hoe (cc'ed) and I had this same problem a few years ago and it took us hours to figure it out,<br>
> ><br>
> > Mark<br>
> ><br>
> > On Mon, Apr 13, 2015 at 9:21 PM, Robert Hager <<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>> wrote:<br>
> >> It seems Petsc is looking at a certain directory, but cannot check where it is.<br>
> ><br>
> > This may be a clue. I always copy the executable to my run directory and call something like<br>
> ><br>
> > aprun ... ./xgca<br>
> ><br>
> > In one of your earlier e-mails, I saw that you call<br>
> ><br>
> > aprun ... {PATH_TO_XGCa_SOURCE}/xgca<br>
> ><br>
> > If PETSc looks for petsc.rc in the directory of the executable, it will try to read a very old petsc.rc file that certainly does not work. Could you try with the executable to your run directory?<br>
> ><br>
> > Best<br>
> ><br>
> > Robert<br>
> ><br>
> > On Apr 13, 2015, at 8:58 PM, Yoon, Eisung wrote:<br>
> ><br>
> >> I attach the requested files.<br>
> >><br>
> >> I tried PETSc and petsc.rc file in the XGC1 example suggested by Mark as well as the original input files in xgc_chang-hinton_test.tar. Also I checked language options which are same with yours and tried sed command, but all failed with almost same messages.<br>
> >><br>
> >> There were rarely interesting error messages, which can be a clue to resolve this issue. The error messages showed "Unknown statement in options file: (%-pc_type hypre )" even though my petsc.rc doesn't have that line. I checked petsc.rc files in XGC source file directory as well as working(running) directory, but that line doesn't exist. Also the default .petscrc doesn't exist in both directories. It seems Petsc is looking at a certain directory, but cannot check where it is.<br>
> >><br>
> >> Best,<br>
> >> Eisung Yoon<br>
> >><br>
> >><br>
> >><br>
> >> From: Robert Hager [<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>]<br>
> >> Sent: Monday, April 13, 2015 5:31 PM<br>
> >> To: Yoon, Eisung<br>
> >> Cc: Choong-Seock Chang; Mark Adams; Mark Shephard<br>
> >> Subject: Re: related to compiling your source code<br>
> >><br>
> >> That looks ok.<br>
> >><br>
> >> I unpacked the tar-file I gave you and ran a diff with the petsc.rc that is still working for me and found that they are identical.<br>
> >><br>
> >> Did you edit any of the files (possibly in a Microsoft environment)? Or maybe your shell misinterprets characters. Did you specify any language in your shell setup?<br>
> >><br>
> >> In case something added any control characters to the petsc.rc file, you can run<br>
> >><br>
> >> sed -e 's/[^[:print:]]//g'<br>
> >><br>
> >> to remove them.<br>
> >><br>
> >> My language settings are<br>
> >><br>
> >> rhager@edison02:~/w/xgca_chang-hinton_test3> locale<br>
> >> LANG=<br>
> >> LC_CTYPE="POSIX"<br>
> >> LC_NUMERIC="POSIX"<br>
> >> LC_TIME="POSIX"<br>
> >> LC_COLLATE="POSIX"<br>
> >> LC_MONETARY="POSIX"<br>
> >> LC_MESSAGES="POSIX"<br>
> >> LC_PAPER="POSIX"<br>
> >> LC_NAME="POSIX"<br>
> >> LC_ADDRESS="POSIX"<br>
> >> LC_TELEPHONE="POSIX"<br>
> >> LC_MEASUREMENT="POSIX"<br>
> >> LC_IDENTIFICATION="POSIX"<br>
> >> LC_ALL=<br>
> >><br>
> >> Could you send your makefile, <a href="http://defs.mk" target="_blank">defs.mk</a> and <a href="http://rules.mk" target="_blank">rules.mk</a> (possibly <a href="http://rules_edison.mk" target="_blank">rules_edison.mk</a>) anyway, please?<br>
> >><br>
> >> Best regards<br>
> >><br>
> >> Robert<br>
> >><br>
> >><br>
> >><br>
> >> On Apr 13, 2015, at 5:01 PM, Yoon, Eisung wrote:<br>
> >><br>
> >>> Hi Robert,<br>
> >>><br>
> >>> I added below to .cshrc.ext as you recommended<br>
> >>><br>
> >>> module load cray-petsc<br>
> >>> module load cray-hdf5-parallel<br>
> >>> module load pspline<br>
> >>> module load adios/1.6.0<br>
> >>><br>
> >>> and got<br>
> >>><br>
> >>> Currently Loaded Modulefiles:<br>
> >>> 1) modules/<a href="http://3.2.10.2" target="_blank">3.2.10.2</a> 7) intel/<a href="http://15.0.1.133" target="_blank">15.0.1.133</a> 13) gni-headers/3.0-1.0502.9684.5.2.ari 19) PrgEnv-intel/5.2.40 25) altd/2.0 31) adios/1.6.0<br>
> >>> 2) nsg/1.2.0 8) cray-libsci/13.0.1 14) xpmem/0.1-2.0502.55507.3.2.ari 20) craype-ivybridge 26) darshan/2.3.0<br>
> >>> 3) eswrap/1.1.0-1.020200.1130.0 9) udreg/2.3.2-1.0502.9275.1.12.ari 15) dvs/2.5_0.9.0-1.0502.1873.1.145.ari 21) cray-shmem/7.1.1 27) usg-default-modules/1.1<br>
> >>> 4) switch/1.0-1.0502.54233.2.96.ari 10) ugni/5.0-1.0502.9685.4.24.ari 16) alps/5.2.1-2.0502.9041.11.6.ari 22) cray-mpich/7.1.1 28) cray-petsc/<a href="http://3.5.2.1" target="_blank">3.5.2.1</a><br>
> >>> 5) craype-network-aries 11) pmi/5.0.6-1.0000.10439.140.2.ari 17) rca/1.0.0-2.0502.53711.3.127.ari 23) torque/5.0.1 29) cray-hdf5-parallel/1.8.13<br>
> >>> 6) craype/2.2.1 12) dmapp/7.0.1-1.0502.9501.5.219.ari 18) atp/1.7.5 24) moab/8.0.1-2014110616-5c7a394-sles11 30) pspline/nersc1.0<br>
> >>><br>
> >>> I copied Makefile.edison to Makefile, and had no problem with compiling and linking. I will try to figure out with the petsc.rc file. Thank you!<br>
> >>><br>
> >>> Best,<br>
> >>> Eisung Yoon<br>
> >>> From: Robert Hager [<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>]<br>
> >>> Sent: Monday, April 13, 2015 4:55 PM<br>
> >>> To: Choong-Seock Chang<br>
> >>> Cc: Yoon, Eisung; Mark Adams; Mark Shephard<br>
> >>> Subject: Re: related to compiling your source code<br>
> >>><br>
> >>> Hi Eisung,<br>
> >>><br>
> >>> I used this file with XGCa on Edison today. Which modules do you use and which set of makefiles?<br>
> >>><br>
> >>> Best<br>
> >>><br>
> >>> Robert<br>
> >>><br>
> >>> On Apr 13, 2015, at 4:44 PM, Choong-Seock Chang wrote:<br>
> >>><br>
> >>>> Please include Mark Adams in the PETSc related e-mails.<br>
> >>>> He is in charge of PETSc in our project. He needs to be aware of all the conversations.<br>
> >>>> Thanks,<br>
> >>>> CS<br>
> >>>><br>
> >>>> On Apr 13, 2015, at 4:42 PM, Yoon, Eisung <<a href="mailto:yoone@rpi.edu">yoone@rpi.edu</a>> wrote:<br>
> >>>><br>
> >>>>> Hi Robert,<br>
> >>>>><br>
> >>>>> I tried to run XGC in Greene and Edison. Green still has a problem with PETSc. Even in edison, XGCa shows an error related to the petsc.rc file as below. Considering "invalid argument" in the message, I guess the petsc.rc included in the xgca_chang-hinton_test.tar doesn't work. Unfortunately, the characters for the unknown option shown in the message is broken. Do you have working petsc.rc?<br>
> >>>>><br>
> >>>>> Thank you!<br>
> >>>>> ES<br>
> >>>>><br>
> >>>>> (t_initf) Read in prof_inparam namelist from: input<br>
> >>>>> PERF_SETOPTS: PAPI library not linked in. Request to enable PAPI ignored.<br>
> >>>>> (t_initf) Using profile_disable= F profile_timer= 2<br>
> >>>>> (t_initf) profile_depth_limit= 99999 profile_detail_limit= 1<br>
> >>>>> (t_initf) profile_barrier= F profile_outpe_num= 1<br>
> >>>>> (t_initf) profile_outpe_stride= 1 profile_single_file= F<br>
> >>>>> (t_initf) profile_global_stats= T profile_papi_enable= F<br>
> >>>>> call petsc_init<br>
> >>>>> [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>
> >>>>> [0]PETSC ERROR: Invalid argument<br>
</div></div>> >>>>> [0]PETSC ERROR: Unknown statement in options file: (???~A'^D)<br>
<div class="HOEnZb"><div class="h5">> >>>>> [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>
> >>>>> [0]PETSC ERROR: Petsc Release Version 3.5.2, Sep, 08, 2014<br>
> >>>>> [0]PETSC ERROR: /global/u2/e/eyoon/branch/dev_rhager_esyoon/epsi/XGCa/xgca on a sandybridge named nid05677 by eyoon Mon Apr 13 13:31:32 2015<br>
> >>>>> [0]PETSC ERROR: Configure options --known-mpi-int64_t=0 --known-bits-per-byte=8 --known-level1-dcache-assoc=0 --known-level1-dcache-linesize=32 --known-level1-dcache-size=32768 --known-memcmp-ok=1 --known-mpi-c-double-complex=1 --known-mpi-long-double=1 --known-mpi-shared-libraries=0 --known-sizeof-MPI_Comm=4 --known-sizeof-MPI_Fint=4 --known-sizeof-char=1 --known-sizeof-double=8 --known-sizeof-float=4 --known-sizeof-int=4 --known-sizeof-long-long=8 --known-sizeof-long=8 --known-sizeof-short=2 --known-sizeof-size_t=8 --known-sizeof-void-p=8 --with-ar=ar --with-batch=1 --with-cc=cc --with-clib-autodetect=0 --with-cxx=CC --with-cxxlib-autodetect=0 --with-debugging=0 --with-dependencies=0 --with-fc=ftn --with-fortran-datatypes=0 --with-fortran-interfaces=0 --with-fortranlib-autodetect=0 --with-ranlib=ranlib --with-scalar-type=real --with-shared-ld=ar --with-etags=0 --with-dependencies=0 --with-dependencies=0 --with-mpi-dir=/opt/cray/mpt/7.0.0/gni/mpich2-intel/140 --with-superlu=1 --with-superlu-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-superlu-lib=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib/libsuperlu.a --with-superlu_dist=1 --with-superlu_dist-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-superlu_dist-lib=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib/libsuperlu_dist.a --with-parmetis=1 --with-parmetis-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-parmetis-lib=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib/libparmetis.a --with-metis=1 --with-metis-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-metis-lib=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib/libmetis.a --with-ptscotch=1 --with-ptscotch-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-ptscotch-lib="-L/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib -lptscotch -lscotch -lptscotcherr -lscotcherr" --with-scalapack=1 --with-scalapack-include=/opt/cray/libsci/13.0.0/INTEL/140/sandybridge/include --with-scalapack-lib="-L/opt/cray/libsci/13.0.0/INTEL/140/sandybridge/lib -lsci_intel_mpi_mp -lsci_intel_mp" --with-mumps=1 --with-mumps-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-mumps-lib="-L/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib -lcmumps -ldmumps -lesmumps -lsmumps -lzmumps -lmumps_common -lptesmumps -lpord" --CFLAGS="-xavx -openmp -O3 " --CXXFLAGS="-xavx -openmp -O3 " --FFLAGS="-xavx -openmp -O3 " --LIBS=-lstdc++ --CXX_LINKER_FLAGS= --PETSC_ARCH=sandybridge --prefix=/opt/cray/petsc/<a href="http://3.5.2.1/real/INTEL/140/sandybridge" target="_blank">3.5.2.1/real/INTEL/140/sandybridge</a> --with-hypre=1 --with-hypre-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-hypre-lib=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib/libHYPRE.a --with-sundials=1 --with-sundials-include=/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/include --with-sundials-lib="-L/opt/cray/tpsl/1.4.3/INTEL/140/sandybridge/lib -lsundials_cvode -lsundials_cvodes -lsundials_ida -lsundials_idas -lsundials_kinsol -lsundials_nvecparallel -lsundials_nvecserial"<br>
> >>>>> [0]PETSC ERROR: #1 PetscOptionsInsertFile() line 534 in /b/cray-petsc/.cray-build/INTEL/140/sandybridge/cray-petsc-base-dynamic/petsc-3.5.2/src/sys/objects/options.c<br>
> >>>>> [0]PETSC ERROR: #2 PetscOptionsInsert() line 716 in /b/cray-petsc/.cray-build/INTEL/140/sandybridge/cray-petsc-base-dynamic/petsc-3.5.2/src/sys/objects/options.c<br>
> >>>>> [0]PETSC ERROR: PetscInitialize:Creating options database<br>
> >>>>> PETSC ERROR: Logging has not been enabled.<br>
> >>>>> You might have forgotten to call PetscInitialize().<br>
> >>>>> Rank 0 [Mon Apr 13 13:31:32 2015] [c5-3c1s11n1] application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0<br>
> >>>>> forrtl: error (76): Abort trap signal<br>
> >>>>> Image PC Routine Line Source<br>
> >>>>> xgca 0000000003363F21 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000003362677 Unknown Unknown Unknown<br>
> >>>>> xgca 000000000331A2F4 Unknown Unknown Unknown<br>
> >>>>> xgca 000000000331A106 Unknown Unknown Unknown<br>
> >>>>> xgca 00000000032AE434 Unknown Unknown Unknown<br>
> >>>>> xgca 00000000032B53B1 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000002F64B60 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000002F64B1B Unknown Unknown Unknown<br>
> >>>>> xgca 0000000003371B11 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000003131922 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000003100063 Unknown Unknown Unknown<br>
> >>>>> xgca 00000000008BD7F0 Unknown Unknown Unknown<br>
> >>>>> xgca 00000000008B2241 Unknown Unknown Unknown<br>
> >>>>> xgca 00000000008C1B41 Unknown Unknown Unknown<br>
> >>>>> xgca 000000000042554B perf_monitor_mp_p 1875 module.F90<br>
> >>>>> xgca 000000000051F3BE MAIN__ 95 main.F90<br>
> >>>>> xgca 0000000000405DEE Unknown Unknown Unknown<br>
> >>>>> xgca 000000000336B6C1 Unknown Unknown Unknown<br>
> >>>>> xgca 0000000000405CD1 Unknown Unknown Unknown<br>
> >>>>> _pmiu_daemon(SIGCHLD): [NID 05677] [c5-3c1s11n1] [Mon Apr 13 13:31:32 2015] PE RANK 0 exit signal Aborted<br>
> >>>>> [NID 05677] 2015-04-13 13:31:32 Apid 11750871: initiated application termination<br>
> >>>>> Application 11750871 exit codes: 134<br>
> >>>>> Application 11750871 exit signals: Killed<br>
> >>>>> Application 11750871 resources: utime ~60s, stime ~12s, Rss ~29844, inblocks ~3174405, outblocks ~8270892<br>
> >>>>> From: Robert Hager [<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>]<br>
> >>>>> Sent: Monday, April 13, 2015 2:16 PM<br>
> >>>>> To: Yoon, Eisung<br>
> >>>>> Cc: <a href="mailto:shephard@rpi.edu">shephard@rpi.edu</a>; <a href="mailto:cschang@pppl.gov">cschang@pppl.gov</a><br>
> >>>>> Subject: Re: related to compiling your source code<br>
> >>>>><br>
> >>>>> Hi Eisung,<br>
> >>>>><br>
> >>>>> you can use the input in<br>
> >>>>><br>
> >>>>> /project/projectdirs/m499/rhager/xgca_chang-hinton_test.tar<br>
> >>>>><br>
> >>>>> Let me know if you have trouble reading the file.<br>
> >>>>><br>
> >>>>> Best regards<br>
> >>>>><br>
> >>>>> Robert<br>
> >>>>><br>
> >>>>> On Apr 13, 2015, at 1:46 PM, Yoon, Eisung wrote:<br>
> >>>>><br>
> >>>>>> Hi Robert,<br>
> >>>>>><br>
> >>>>>> Thank you for the information and explanation. I attach a text file which contains issues of source code with TRIGRID and variable collision time.<br>
> >>>>>><br>
> >>>>>> I'm sorry for not telling you previously that I was compiling the source code in PPPL server. I've not ready to use XGC in Edison yet but I'm going to work it to be ready right now.<br>
> >>>>>><br>
> >>>>>> Could you send me an input file of XGCa for a collision test in Edison?<br>
> >>>>>><br>
> >>>>>> Thanks a lot!!!<br>
> >>>>>> ES<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> From: Robert Hager [<a href="mailto:rhager@pppl.gov">rhager@pppl.gov</a>]<br>
> >>>>>> Sent: Monday, April 13, 2015 10:34 AM<br>
> >>>>>> To: Yoon, Eisung<br>
> >>>>>> Cc: <a href="mailto:shephard@rpi.edu">shephard@rpi.edu</a>; <a href="mailto:cschang@pppl.gov">cschang@pppl.gov</a><br>
> >>>>>> Subject: Re: related to compiling your source code<br>
> >>>>>><br>
> >>>>>> Hi Eisung,<br>
> >>>>>><br>
> >>>>>> the TRIGRID directive should not cause any errors. Can I see the error message?<br>
> >>>>>><br>
> >>>>>> I looked at Makefile.edison in your branch. It looks fine. You might have to change <a href="http://defs.mk" target="_blank">defs.mk</a> though. There is one include statement to import some PETSc variable definitions. Depending on whether you use PETSc 3.5 or 3.6, you have to use the first or the second line, respectively.<br>
> >>>>>><br>
> >>>>>> On Edison, I load the following modules in addition to the default:<br>
> >>>>>><br>
> >>>>>> module load cray-petsc<br>
> >>>>>> module load cray-hdf5-parallel<br>
> >>>>>> module load pspline<br>
> >>>>>><br>
> >>>>>> The output of module list is<br>
> >>>>>><br>
> >>>>>> Currently Loaded Modulefiles:<br>
> >>>>>> 1) modules/<a href="http://3.2.10.2" target="_blank">3.2.10.2</a> 13) gni-headers/3.0-1.0502.9684.5.2.ari 25) cray-petsc/<a href="http://3.5.2.1" target="_blank">3.5.2.1</a><br>
> >>>>>> 2) nsg/1.2.0 14) xpmem/0.1-2.0502.55507.3.2.ari 26) cray-hdf5-parallel/1.8.13<br>
> >>>>>> 3) eswrap/1.1.0-1.020200.1130.0 15) dvs/2.5_0.9.0-1.0502.1873.1.145.ari 27) pspline/nersc1.0<br>
> >>>>>> 4) switch/1.0-1.0502.54233.2.96.ari 16) alps/5.2.1-2.0502.9041.11.6.ari 28) allineatools/5.0.1<br>
> >>>>>> 5) craype-network-aries 17) rca/1.0.0-2.0502.53711.3.127.ari 29) idl/8.2<br>
> >>>>>> 6) craype/2.2.1 18) atp/1.7.5 30) gv/3.7.3<br>
> >>>>>> 7) intel/<a href="http://15.0.1.133" target="_blank">15.0.1.133</a> 19) PrgEnv-intel/5.2.40 31) latex/2012<br>
> >>>>>> 8) cray-libsci/13.0.1 20) craype-ivybridge 32) altd/2.0<br>
> >>>>>> 9) udreg/2.3.2-1.0502.9275.1.12.ari 21) cray-shmem/7.1.1 33) darshan/2.3.0<br>
> >>>>>> 10) ugni/5.0-1.0502.9685.4.24.ari 22) cray-mpich/7.1.1 34) usg-default-modules/1.1<br>
> >>>>>> 11) pmi/5.0.6-1.0000.10439.140.2.ari 23) torque/5.0.1<br>
> >>>>>> 12) dmapp/7.0.1-1.0502.9501.5.219.ari 24) moab/8.0.1-2014110616-5c7a394-sles11<br>
> >>>>>><br>
> >>>>>> Last time I tried, the code compiled with these settings. It also ran a couple of time steps. But there are still some bugs in the code. Making the collision time step variable is a bit complicated because the collision operation is usually run together with all other sources like heating, etc. Therefore, the distribution function is evaluated only every sml_f_source_period time steps. If a collision operation is supposed to run at a different time step, f will not be available with the current code. However, in order to test whether it is worth to pursue this approach, I wanted to implement variable collision time steps in the simplest possible way, i.e. sml_f_source_period=0 and all sources except the collision operation deactivated. The collision interval must have an upper limit which I set to 10 time steps in my test. The interval for load-balancing should be a multiple of this upper limit in order to be efficient. If this approach helps to improve performance, we can think about how to implement variable collision intervals in a cleaner way.<br>
> >>>>>><br>
> >>>>>> Let me know if you have any further problems.<br>
> >>>>>><br>
> >>>>>> Best<br>
> >>>>>><br>
> >>>>>> Robert<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> On Apr 12, 2015, at 2:38 PM, Yoon, Eisung wrote:<br>
> >>>>>><br>
> >>>>>>> Hi Robert,<br>
> >>>>>>><br>
> >>>>>>> Thank you for the performance test data. I really appreciate your work.<br>
> >>>>>>><br>
> >>>>>>> As for variable collision time, I've made a branch "dev_rhager_esyoon" as a copy of your source code, "dev_rhager". I've read your modification for variable collision time in the XGCa folder.<br>
> >>>>>>><br>
> >>>>>>> In order to run the code, I currently have trouble with compiling the source code. It appears preprocessing directives -DTRIGRID causes the error. Could you send me your Makefile to see working compile options?<br>
> >>>>>>><br>
> >>>>>>> Thank you.<br>
> >>>>>>><br>
> >>>>>>> Best,<br>
> >>>>>>> ES<br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>><br>
> >>>>>> <code_reading.txt><br>
> >><br>
> >> <<a href="http://defs.mk" target="_blank">defs.mk</a>><Makefile><<a href="http://rules.mk" target="_blank">rules.mk</a>><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>