How to use "delta_sph" as the density diffusion method

Hi Giuseppe,
I hope all is well with you.

I’m trying to use “delta_sph” as the density diffusion method for a case to compare it with the Colagrossi method. However, when I use const DensityDiffusionType rhodiff = get_option("density-diffusion", DELTA_SPH);, I get an error indicating that DELTA_SPH is not recognized as a valid density diffusion method.

Do you know how I can resolve this issue?

Best regards,
Alireza

Hi @AlirezaZarei, I can’t reproduce the issue here.

(The test I’ve made is to replace ANTUONO with DELTA_SPH in the SlidingWedge test-case, it still compiles.)

Are you perhaps on an older branch?

Thank You!
I tried changing the density diffusion option through the .slurm file without modifying the .cu file, but it didn’t work. However, when I updated the density diffusion option directly in the .cu file to “DELTA_SPH,” it worked, and I didn’t encounter the issue.

Best,
Alireza