# Ticket #1234(closed assessed: fixed)

Opened 7 years ago

## Problem in Respiration calculations with detritus export

Reported by: Owned by: jeroens normal Ecopath 6: release 6.4 BETA Ecopath 6.3.1 minor

### Description

There is a problem with the Respiration calculation in EwE 6 because of the detritus export

## Change History

### comment:1 Changed 7 years ago by jeroens

Joe B: Previous to EwE version 6.3.1 respiration was calculated as

```Prod = EE(i) * B(i) * PB(i) + FlowToDet(i)
' FlowToDet(i) is the total flow to Detritus
If Me.areUnitCurrencyNutrients() Then
'Nutrient
Resp(i) = 0
ElseIf PP(i) < 1 Then
'Consumers
Resp(i) = B(i) * QB(i) - (1 - PP(i)) * Prod
Else
'producers & detritus
Prod = B(i) * PB(i)
Consump = B(i) * QB(i)
UnAssimConsump = GS(i) * Consump
Resp(i) = Consump - Prod - UnAssimConsump
End If
```

where

• PP(i) = 0 for consumers
• PP(i) = 1 for producers
• PP(i) = 2 for detritus

This has been changed to

``` Prod = B(i) * PB(i)
Consump = B(i) * QB(i)
UnAssimConsump = GS(i) * Consump

'sum consumption across all the groups for Ecopath Stats
Consum += Consump

Resp(i) = Consump - Prod - UnAssimConsump
'Respiration = zero if the units are nutrients
If Me.areUnitCurrencyNutrients() Then
Resp(i) = 0.0F 'Nutrient
End If
```
Last edited 7 years ago by joeb (previous) (diff)

### comment:2 Changed 7 years ago by jeroens

• Status changed from new to closed
• Severity changed from NOT SET to minor
• Type changed from not assessed to assessed
• Component changed from NOT SET to Ecopath
• Priority changed from NOT SET to normal
• Milestone changed from NOT SET to Ecopath 6: next release
• Resolution set to fixed
Note: See TracTickets for help on using tickets.