From d4df50a0668dafc52b59ded903fdd6ed98531517 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Thu, 18 Apr 2024 18:24:18 +0200 Subject: [PATCH] refactor: function rename --- libs/initialise/initsupers_frombinary.cpp | 8 +++++--- libs/initialise/initsupers_frombinary.hpp | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libs/initialise/initsupers_frombinary.cpp b/libs/initialise/initsupers_frombinary.cpp index 7e1996f82..8dd75cda8 100644 --- a/libs/initialise/initsupers_frombinary.cpp +++ b/libs/initialise/initsupers_frombinary.cpp @@ -1,4 +1,6 @@ -/* Copyright (c) 2023 MPI-M, Clara Bayley +/* + * Copyright (c) 2024 MPI-M, Clara Bayley + * * * ----- CLEO ----- * File: initsupers_frombinary.cpp @@ -7,7 +9,7 @@ * Author: Clara Bayley (CB) * Additional Contributors: * ----- - * Last Modified: Monday 6th November 2023 + * Last Modified: Thursday 18th April 2024 * Modified By: CB * ----- * License: BSD 3-Clause "New" or "Revised" License @@ -25,7 +27,7 @@ /* sets initial data for solutes as a single SoluteProprties instance */ -void InitSupersFromBinary::init_solutes_data(InitSupersData &initdata) const { +void InitSupersFromBinary::initdata_for_solutes(InitSupersData &initdata) const { initdata.solutes.at(0) = SoluteProperties{}; } diff --git a/libs/initialise/initsupers_frombinary.hpp b/libs/initialise/initsupers_frombinary.hpp index 462a7326a..78f3f5f8a 100644 --- a/libs/initialise/initsupers_frombinary.hpp +++ b/libs/initialise/initsupers_frombinary.hpp @@ -48,7 +48,7 @@ struct InitSupersFromBinary { /* sets initial data for solutes as a single SoluteProprties instance */ - void init_solutes_data(InitSupersData &initdata) const; + void initdata_for_solutes(InitSupersData &initdata) const; /* sets initial data in initdata using data read from a binary file called initsupers_filename */ @@ -112,7 +112,7 @@ struct InitSupersFromBinary { file and creating a SoluteProperties struct. Then check that the input data has the correct sizes. */ void fetch_data(InitSupersData &initdata) const { - init_solutes_data(initdata); + initdata_for_solutes(initdata); initdata_from_binary(initdata); check_initdata_sizes(initdata); }