Skip to content

Commit a52361b

Browse files
authored
Refactor: changed cereal url with codeload (#6408)
* Update FetchContent URL for cereal to use the latest master version * Use std::abs instead of abs to suppress warning message "using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]"
1 parent 61c325c commit a52361b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/FindCereal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(NOT CEREAL_INCLUDE_DIR)
1515
include(FetchContent)
1616
FetchContent_Declare(
1717
cereal
18-
URL https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.2.tar.gz
18+
URL https://codeload.github.com/USCiLab/cereal/tar.gz/master
1919
)
2020
FetchContent_Populate(cereal)
2121
set(CEREAL_INCLUDE_DIR ${cereal_SOURCE_DIR}/include)

source/source_estate/magnetism.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void Magnetism::compute_mag(const double& omega,
8484
{
8585
this->tot_mag_nc[i] *= omega/ nxyz;
8686
// mohan add 2025-06-21
87-
if( abs(this->tot_mag_nc[i]) < 1.0e-16)
87+
if( std::abs(this->tot_mag_nc[i]) < 1.0e-16)
8888
{
8989
this->tot_mag_nc[i] = 0.0;
9090
}

0 commit comments

Comments
 (0)