Fixup
This commit is contained in:
parent
71691956cc
commit
9b148414b6
@ -81,7 +81,7 @@ cdef class CosmologyPower:
|
||||
if 'ns' in cosmo:
|
||||
self.power.n = cosmo['ns']
|
||||
if 'T27' in cosmo:
|
||||
self.power.THETA_27 = cosmo['T27']
|
||||
self.power.Theta_27 = cosmo['T27']
|
||||
|
||||
assert self.power.OMEGA_C > 0
|
||||
|
||||
|
@ -143,10 +143,16 @@ void UnformattedRead::endCheckpoint(bool autodrop)
|
||||
delete[] recordBuffer;
|
||||
recordBuffer = 0;
|
||||
}
|
||||
if (cSize == Check_32bits) {
|
||||
if (checkPointAccum >= 1<<32UL) {
|
||||
always_fail = true;
|
||||
checkPointAccum %= (1<<32UL);
|
||||
}
|
||||
}
|
||||
|
||||
if (checkPointRef != checkPointAccum)
|
||||
{
|
||||
if (!autodrop || checkPointAccum > checkPointRef) {
|
||||
if (always_fail || !autodrop || checkPointAccum > checkPointRef) {
|
||||
throw InvalidUnformattedAccess();
|
||||
}
|
||||
f->seekg(checkPointRef-checkPointAccum, ios::cur);
|
||||
|
Loading…
Reference in New Issue
Block a user