Skip to content

Commit 0590ad5

Browse files
committed
uncrustify and clean up
1 parent afd3ec6 commit 0590ad5

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

src/reactions/massActions/MassActions.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ void calculateAggregatePrimaryConcentrationsWrtLogC( PARAMS_DATA const & params,
175175

176176
REAL_TYPE logSecondarySpeciesConcentrations[numSecondarySpecies] = {0};
177177

178-
calculateAggregatePrimaryConcentrationsWrtLogC< REAL_TYPE,
179-
INT_TYPE,
180-
INDEX_TYPE>( params,
181-
logPrimarySpeciesConcentrations,
182-
logSecondarySpeciesConcentrations,
183-
aggregatePrimarySpeciesConcentrations,
184-
dAggregatePrimarySpeciesConcentrationsDerivatives_dLogPrimarySpeciesConcentrations );
178+
calculateAggregatePrimaryConcentrationsWrtLogC< REAL_TYPE,
179+
INT_TYPE,
180+
INDEX_TYPE >( params,
181+
logPrimarySpeciesConcentrations,
182+
logSecondarySpeciesConcentrations,
183+
aggregatePrimarySpeciesConcentrations,
184+
dAggregatePrimarySpeciesConcentrationsDerivatives_dLogPrimarySpeciesConcentrations );
185185

186186
}
187187

@@ -241,8 +241,9 @@ void calculateTotalAndMobileAggregatePrimaryConcentrationsWrtLogC( PARAMS_DATA c
241241
dSecondarySpeciesConcentrations_dLogPrimarySpeciesConcentration;
242242

243243
dMobileAggregatePrimarySpeciesConcentrationsDerivatives_dLogPrimarySpeciesConcentrations( i, k ) += params.stoichiometricMatrix( j,
244-
i+numSecondarySpecies ) *
245-
dSecondarySpeciesConcentrations_dLogPrimarySpeciesConcentration * params.mobileSecondarySpeciesFlag( j );
244+
i+numSecondarySpecies ) *
245+
dSecondarySpeciesConcentrations_dLogPrimarySpeciesConcentration *
246+
params.mobileSecondarySpeciesFlag( j );
246247
}
247248
}
248249
}

src/reactions/reactionsSystems/EquilibriumReactionsAggregatePrimaryConcentration_impl.hpp

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ EquilibriumReactions< REAL_TYPE,
128128

129129

130130
REAL_TYPE residualNorm = 0.0;
131-
// 0: 1e-20 -0 2 -2.5e+11 1e-20 7 2 1.8 1 5
132-
printf( "iter X1 R0 X2 R1 X3 R2 X4 R3 S R4\n");
133-
printf( "---- --------------- --------------- --------------- --------------- ---------------\n");
131+
// // Print for MoMaS only
132+
// // 0: 1e-20 -0 2 -2.5e+11 1e-20 7 2 1.8 1 5
133+
// printf( "iter X1 R0 X2 R1 X3 R2 X4 R3 S R4\n" );
134+
// printf( "---- --------------- --------------- --------------- --------------- ---------------\n" );
134135
for( int k=0; k<150; ++k )
135136
{
136137
computeResidualAndJacobianAggregatePrimaryConcentrations( temperature,
@@ -147,18 +148,19 @@ EquilibriumReactions< REAL_TYPE,
147148
}
148149
residualNorm = sqrt( residualNorm );
149150

150-
printf( "%2d: %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g \n",
151-
k,
152-
exp( logPrimarySpeciesConcentration[0] ),
153-
residual[0],
154-
exp( logPrimarySpeciesConcentration[1] ),
155-
residual[1],
156-
exp( logPrimarySpeciesConcentration[2] ),
157-
residual[2],
158-
exp( logPrimarySpeciesConcentration[3] ),
159-
residual[3],
160-
exp( logPrimarySpeciesConcentration[4] ),
161-
residual[4] );
151+
// // Print for MoMaS only
152+
// printf( "%2d: %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g %8.2g \n",
153+
// k,
154+
// exp( logPrimarySpeciesConcentration[0] ),
155+
// residual[0],
156+
// exp( logPrimarySpeciesConcentration[1] ),
157+
// residual[1],
158+
// exp( logPrimarySpeciesConcentration[2] ),
159+
// residual[2],
160+
// exp( logPrimarySpeciesConcentration[3] ),
161+
// residual[3],
162+
// exp( logPrimarySpeciesConcentration[4] ),
163+
// residual[4] );
162164

163165
//printf( "iter, residualNorm = %2d, %16.10g \n", k, residualNorm );
164166
if( residualNorm < 1.0e-12 )

src/reactions/reactionsSystems/MixedEquilibriumKineticReactions.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ class MixedEquilibriumKineticReactions
7474
* @param aggregatePrimarySpeciesConcentrations Output aggregate concentrations (per primary)
7575
* @param mobileAggregatePrimarySpeciesConcentrations Output mobile aggregate concentrations (per primary)
7676
* @param dAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of aggregate concentrations w.r.t. log
77-
* @param dMobileAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of mobile aggregate concentrations w.r.t. log
77+
* @param dMobileAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of mobile aggregate concentrations
78+
* w.r.t. log
7879
* primary
7980
* @param reactionRates Output vector of kinetic reaction rates
8081
* @param dReactionRates_dLogPrimarySpeciesConcentrations Derivatives of reaction rates w.r.t. log primary species
@@ -227,7 +228,8 @@ class MixedEquilibriumKineticReactions
227228
* @param aggregatePrimarySpeciesConcentrations Output aggregate concentrations (per primary)
228229
* @param mobileAggregatePrimarySpeciesConcentrations Output mobile aggregate concentrations (per primary)
229230
* @param dAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of aggregate concentrations w.r.t. log
230-
* @param dMobileAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of mobile aggregate concentrations w.r.t. log
231+
* @param dMobileAggregatePrimarySpeciesConcentrations_dLogPrimarySpeciesConcentrations Derivatives of mobile aggregate concentrations
232+
* w.r.t. log
231233
* primary
232234
* @param reactionRates Output vector of kinetic reaction rates
233235
* @param dReactionRates_dLogPrimarySpeciesConcentrations Derivatives of reaction rates w.r.t. log primary species

0 commit comments

Comments
 (0)