picongpu icon indicating copy to clipboard operation
picongpu copied to clipboard

Add CurrentDeposition test

Open MRZirper opened this issue 2 years ago • 19 comments

add single particle Current Deposition test from EZ-paper to CI

MRZirper avatar May 08 '23 13:05 MRZirper

Looks like there are some temporary files in the commit e.g. #validate.sh#, ... Do we need the h5 files in the PR?

psychocoderHPC avatar May 11 '23 08:05 psychocoderHPC

The CI is still not happy about this pull request. What is the status of this pull request @MRZirper @steindev ?

PrometheusPi avatar May 22 '23 08:05 PrometheusPi

I do not have the knowledge to fix this. @steindev has to do it for me.

MRZirper avatar May 22 '23 08:05 MRZirper

@MRZirper CI is complaining:

./share/picongpu/tests/CurrentDeposition/lib/python/test/CurrentDeposition/MainTest.py contains non-ASCII characters!
9:    path should have the form ��data_%T�� to provide access to all iterations.
47:    """reads the position values ��position_offset�� (grid_knot) and ��position��
87:        # Sp��hlen nicht vergessen!

And it seems you did not properly clean up the code...

steindev avatar Jun 27 '23 13:06 steindev

@MRZirper A requirements.txt is required in share/picongpu/tests/CurrentDeposition/lib/python/test/CurrentDeposition. Similar to the one existing in KHI_grwothRate.

steindev avatar Jul 20 '23 12:07 steindev

It looks like there is the old ZigZag current deposition method used in one of the cases in cmakeFlags that is not existent anymore.

/root/buildCI/params/CurrentDeposition/cmakePreset_8/include/picongpu/param/species.param:82:54: error: no template named 'ZigZagCIC' in namespace 'picongpu::currentSolver'
    using UsedParticleCurrentSolver = currentSolver::PARAM_CURRENTSOLVER<UsedParticleShape>;
                                      ~~~~~~~~~~~~~~~^
<command line>:20:29: note: expanded from here
#define PARAM_CURRENTSOLVER ZigZagCIC

steindev avatar Jul 21 '23 10:07 steindev

@MRZirper and @steindev what is the status of this pull request? Who will implement the changes?

PrometheusPi avatar Aug 18 '23 13:08 PrometheusPi

The code style is not yet conform to your code style.

PrometheusPi avatar Sep 05 '23 12:09 PrometheusPi

@MRZirper @PrometheusPi The code style check is failing since your branch is not up to date with the dev, causing the CI to revert PR #4643

You need to call git pull --rebase mainline dev(assuming usual remote naming) to bring your branch up to date with the dev and avoid the reversion.

BrianMarre avatar Sep 05 '23 14:09 BrianMarre

@MRZirper and @steindev can this be reviewed?

PrometheusPi avatar Sep 08 '23 12:09 PrometheusPi

@MRZirper and @steindev can this be reviewed?

I think so

MRZirper avatar Sep 08 '23 14:09 MRZirper

@MRZirper Please don't forget to squash before the next push.

steindev avatar Oct 18 '23 13:10 steindev

I am happy now. Please rebase and squash.

steindev avatar Jan 11 '24 13:01 steindev

You must update your example, there was a change in PMacc and one file is not available anymore. Please remove the include and run clang-format again.

/root/buildCI/params/CurrentDeposition/cmakePreset_5/include/picongpu/param/density.param:54:10: fatal error: 'pmacc/preprocessor/struct.hpp' file not found
#include <pmacc/preprocessor/struct.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

psychocoderHPC avatar Jan 18 '24 13:01 psychocoderHPC

@steindev @MRZirper your particle.param is old, the interface changed, take a look here for the new interface

BrianMarre avatar Jan 24 '24 12:01 BrianMarre

By the way, the onePositionParam in your particle.param suffers from the same issue, you need to remove all instances of CONST_VECTOR.

BrianMarre avatar Jan 24 '24 15:01 BrianMarre

@PrometheusPi please re-review. Or you old request of changes will be dismissed.

steindev avatar Jan 31 '24 08:01 steindev

@ComputationalRadiationPhysics/picongpu-maintainers Last call for reviewing this additional test case!

steindev avatar Jan 31 '24 08:01 steindev

From skimming through this, a number of comments from #4801 might apply here, too. If merging this is not a pressing matter, I'll have a more detailed look before the beginning of March which seems to be when we could expect any further work on this.

chillenzer avatar Feb 07 '24 11:02 chillenzer

@MRZirper it looks like the PR will pass the CI. Please squash into one single commit (and rebase). Then we will merge.

steindev avatar Mar 14 '24 20:03 steindev

Ohh, provided @chillenzer is happy with the changes you made... @chillenzer we will wait for your approval.

steindev avatar Mar 14 '24 20:03 steindev

Why does the test fail here?

MRZirper avatar Apr 10 '24 06:04 MRZirper

@MRZirper Last requirement: Please squash and rebase.

steindev avatar Apr 25 '24 07:04 steindev