Skip to content

Commit c1fd203

Browse files
authored
Merge pull request #162 from open-atmos/slayoo-patch-18
use aero_particle_set_vols to set volumes in AeroParticle ctor
2 parents 650ef57 + 798f897 commit c1fd203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aero_particle.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ subroutine f_aero_particle_init(ptr_c, aero_data_ptr_c, arr_data, arr_size) bind
3737
call c_f_pointer(ptr_c, ptr_f)
3838
call c_f_pointer(aero_data_ptr_c, aero_data_ptr_f)
3939
allocate(ptr_f%vol(arr_size))
40-
ptr_f%vol = arr_data
40+
call aero_particle_set_vols(ptr_f, arr_data)
4141
end subroutine
4242

4343
subroutine f_aero_particle_volumes(ptr_c, arr_data, arr_size) bind(C)

0 commit comments

Comments
 (0)