Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrescribedFields crashes with AMcylindrical geometry #550

Closed
rho-novatron opened this issue Jun 28, 2022 · 0 comments
Closed

PrescribedFields crashes with AMcylindrical geometry #550

rho-novatron opened this issue Jun 28, 2022 · 0 comments
Labels

Comments

@rho-novatron
Copy link
Contributor

Description

Applying PrescribedFields to a simulation with AMcylindrical geometry crashes, due to faulty cloning logic in ElectroMagnFactory::create() and ElectroMagnFactory::clone()

Steps to reproduce the problem

Stack trace (most recent call last):
#8 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#7 Object "../../Smilei/smilei", at 0x5562ba5d0e49, in _start
#6 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f5a68c4a7fc, in __libc_start_main
#5 Object "../../Smilei/smilei", at 0x5562baee98c1, in main
#4 Object "../../Smilei/smilei", at 0x5562baeee3d4, in PatchesFactory::createVector(VectorPatch&, Params&, SmileiMPI*, OpenPMDparams&, RadiationTables*, unsigned int, unsigned int)
#3 Object "../../Smilei/smilei", at 0x5562bad98e67, in PatchesFactory::create(Params&, SmileiMPI*, DomainDecomposition*, unsigned int, unsigned int)
#2 Object "../../Smilei/smilei", at 0x5562bae33c61, in PatchAM::PatchAM(Params&, SmileiMPI*, DomainDecomposition*, unsigned int, unsigned int)
#1 Object "../../Smilei/smilei", at 0x5562badc0808, in Patch::finishCreation(Params&, SmileiMPI*, DomainDecomposition*)
#0 Object "../../Smilei/smilei", at 0x5562badf4e91, in ElectroMagnFactory::create(Params&, DomainDecomposition*, std::vector<Species*, std::allocator<Species*> >&, Patch*)
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault

Parameters

  • Smilei version
    Latest master (8877fbc)
  • Input file
    benchmarks/tstAM_00_em_propagation.py with the line
PrescribedField(field = 'Bl_m_mode_0', profile = lambda l,r,*args: 1)

added at the end.

  • Commands or script used to run the faulty simulation ?
rho@louie:~/git/Smilei/benchmarks$ ../smilei tstAM_00_em_propagation.py 
  • Computing resources
    • workstation with 64 GB ram and AMD Ryzen 7 3700X 8-Core Processor
    • Debian 12
    • C++ compiler g++ (Debian 11.3.0-3) 11.3.0
    • MPI version 4.1.4-1
    • HDF5 version 1.10.7
    • Python version 3.9.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant