Mailing List picongpu-users@hzdr.de Message #43
From: Huebl, Axel <a.huebl@hzdr.de>
Subject: Re: [PIConGPU-Users] Input parameters
Date: Fri, 20 Nov 2015 19:45:49 +0100
To: <picongpu-users@hzdr.de>
Signed Data (Text SHA1)
Hi,

> its possible at the moment to "drive all the parameters" from a single
> text file ?

parameter files (ending on .param) are modular C++ header files and one
seldom needs to adjust all of them.

One can in principle merge all .param files into one file as long as one
keeps the order as in
  src/picongpu/include/simulation_defines/_defaultParam.loader

while concatenating those. Also, one can copy and modify the
_defaultParam.loader file itself so it only looks for one file.

But I would not recommend that, since they are many and add up to 2500
lines of code (which is still the usual Fortran file size but rather
hard to maintain).


> and/or to modify 1 parameter without compiling again ?

All changes in .param files need a recompile since they are actual
source files.
Changes in .cfg files (for tbg) do not need a recompile.

This is unfortunate but necessary to minimize overheads on modern
compute hardware. One can relax that pain during parameter scans that by
writing scripts that, e.g., clone existing cases, change some param via
"sed" or similar tools and compile it.


Best regards,
Axel

On 20.11.2015 19:35, Tadzio Levato wrote:
> Hi All,
>
>
> its possible at the moment to "drive all the parameters" from a single
> text file ?
>
> and/or to modify 1 parameter without compiling again ?
>
> Thanks!
> Tadzio
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list <picongpu-users@hzdr.de>.
> To unsubscribe, E-mail to: <picongpu-users-off@hzdr.de>
> To switch to the DIGEST mode, E-mail to <picongpu-users-digest@hzdr.de>
> To switch to the INDEX mode, E-mail to <picongpu-users-index@hzdr.de>
> Send administrative queries to  <picongpu-users-request@hzdr.de>
>

--

Axel Huebl
Phone +49 351 260 3582
https://www.hzdr.de/crp
Computational Radiation Physics
Laser Particle Acceleration Division
Helmholtz-Zentrum Dresden - Rossendorf e.V.

Bautzner Landstrasse 400, 01328 Dresden
POB 510119, D-01314 Dresden
Vorstand: Prof. Dr.Dr.h.c. R. Sauerbrey
          Prof. Dr.Dr.h.c. P. Joehnk
VR 1693 beim Amtsgericht Dresden

Content Unaltered as verified By:
Huebl, Axel <a.huebl@hzdr.de>
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster