Introduction

Biphasic life cycles, featuring a planktonic larval stage and a sedentary adult stage separated by metamorphosis, are common among benthic invertebrates and reef fish (Gerber et al. 2014; Levin and Bridges 1995; Pechenik 1999). Although the exact details of the larval stage vary across species, a successful trajectory might progress as follows: spawning or hatching in the benthos or bottom waters; transport (by diffusion, advection, and in many cases, locomotion) away from the natal habitat; development in the water column until competent for metamorphosis; transport toward a suitable benthic habitat; and settling into this habitat for metamorphosis (Shanks 1995). However, very few spawned larvae actually settle, while the vast majority either succumb to predation and other hazards or fail to find a suitable habitat before senescence (“wastage”) (Morgan 1995; Rumrill 1990; White et al. 2014).

It is often asserted that planktonic development did not arise as an adaptation for dispersal, but rather as an ontogenetic migration that removes vulnerable offspring from sibling competition and coastal predators (including the larvae’s parents), with dispersal occurring as a consequence (Levin 2006; Morgan 1995; Pechenik 1999; Shanks 1995; Strathmann 1974). The claim rests on the belief that larvae experience greater mortality rates near the shore than elsewhere. However, this argument is confounded by the fact that larvae transported far from coastal habitats instead face an increased risk of wastage (Cowen et al. 2000; Morgan 1995; Rumrill 1990). The spatial segregation of these two sources of larval loss results in a trade-off between mortality and wastage with offshore travel, in which movement away from one hazard seemingly brings larvae closer to the other. In other words, dispersing larvae find themselves “between a rock and a hard place.”

Assuming that the commonness of dispersive larvae in nature indicates that this life history strategy is in some way adaptive, one or more of the following statements about larval dispersal should be true:

  1. 1.

    The risk of mortality near the shore is so great that the probability of returning from offshore to settle is greater than that of surviving near the coast.

  2. 2.

    There are mechanisms by which the trade-off of offshore movement can be managed, such that larvae can escape mortality near the shore without greatly increasing their risk of wastage, or vice versa.

  3. 3.

    Despite the risks, species with dispersive larva produce sufficiently many successful offspring to replenish the adult population. There are benefits to planktonic development and dispersal, described below, that are not adequately represented by the fraction of offspring that succeeds.

Theory and examples supporting statements (2) and (3) are common in the literature, while (1) is usually taken as axiomatic for the evolution of planktonic, rather than benthically reared, offspring.

Mechanisms for managing the trade-off between wastage and mortality can be biotic or abiotic. Biotic mechanisms include horizontal and vertical locomotion by larvae of some species to influence net changes to their advection and diffusion, but the ability to do so varies across taxa (Cowen et al. 2000; Largier 2003; Paris et al. 2007; Shanks 1986; Young 1995). Abiotic mechanisms, on the other hand, are relevant to individuals of all species in a given environment. Retention zones and coastal boundary layers (CBLs) in which movement is slow have long been recognized as common oceanographic phenomena that reduce wastage by keeping larvae close to shore (Largier 2003; Largier 2004; Morgan 1995; Nickols et al. 2013; Shanks 2009). These mechanisms may, in some cases, also act to mitigate trade-offs between wastage and mortality by allowing larvae to escape high nearshore mortality rates without being swept too far away. In other cases—particularly when the mortality rate is high over much of the CBL or the habitat into which larvae must settle—one would expect nearshore retention to exacerbate mortality. Further investigation is needed to determine how low-diffusivity coastal regions interact with the mortality–wastage trade-off.

Undoubtedly, there are benefits to planktonic development that extend beyond ensuring a sufficiently large reproductive yield. These include many of the usual benefits to dispersal and range expansion seen in both aquatic and terrestrial ecosystems, such as escaping crowding, inbreeding, and pathogens or parasites; the ability to colonize new and potentially better habitats; and increased resilience against local disturbances (Burgess et al. 2016; Hamilton and May 1977; Shaw et al. 2019; Strathmann 1974). Larval dispersal may also allow larvae to access and benefit from different or more abundant food sources in the offshore waters than would be accessible nearshore or in the benthos. Additionally, planktonic development may allow for multiple kinds of bet-hedging against environmental variability. By having larvae settle in several different habitats along the shore, individuals reduce the probability of having all of their offspring wiped out by a localized stochastic disturbance (Strathmann 1974). Organisms may also bet-hedge by exploiting the trade-off between wastage and mortality inherent in cross-shore dispersal. If nearshore mortality rates and offshore diffusivity vary annually, but independently, then exposing individual offspring to either (but not both) of these sources of loss reduces the probability that a bad year will extinguish all of an individual’s progeny.

The present article investigates the conditions needed for the risk of nearshore mortality to outweigh that of offshore wastage (that is, statement (1)), and how these conditions are affected by a CBL (statement (2)), a mechanism usually held to improve recruitment. Despite the evolutionary significance ascribed to cross-shore heterogeneity in the larval mortality rate, there have been surprisingly few attempts to measure mortality rates in nature (but see Rumrill (1990) and White et al. (2014)). This is largely due to the many challenges researchers face tracking individual larvae in situ, as well as obstacles to direct measurement of the mortality rate itself. Yet, although mathematical models are commonly used to study larval dispersal and the connectivity of coastal metapopulations, even theoretical studies often assume the mortality rate to be uniform in space, or are agnostic about offshore mortality (or mortality in general) as an important source of loss compared to nearshore mortality and wastage (Cowen et al. 2000; Cowen et al. 2006; Cowen and Sponaugle 2008; Nickols et al. 2015; Paris et al. 2007; Roughgarden et al. 1988; Siegel et al. 2008). Excluding cross-shore structure in the mortality rate allows researchers to focus on other aspects of dispersal, but to our knowledge, no efforts have been made to determine what effect this structure has on other research foci, such as larval supply and alongshore dispersal distance (collectively, “larval delivery” to coastal post-larval habitats).

We believe that in some cases, neglecting the cross-shore structure of the environment will lead to erroneous predictions of larval delivery. Fitting a spatially uniform mortality rate to field measurements, or neglecting mortality altogether, can result in substantively different estimates of the fraction of spawned larvae that returns to shore, and may have consequences for local population dynamics. Furthermore, the spatial structure of the mortality rate determines how far offshore settling larvae tend to reside during development. Since alongshore currents are often structured in the cross-shore direction, a heterogeneous mortality rate could influence which alongshore currents larvae experience during development, and consequently, how far alongshore larvae disperse (Largier 2003; Largier et al. 1993; Nickols et al. 2012).

The trade-off created by near- and offshore hazards may also have evolutionary implications that have not previously been discussed. The diffusivity of an individual larva is the result of both coastal hydrodynamics, which vary on several time scales, and morphology and behavior, which can be shaped over generations by natural selection. Focusing strictly on a population’s ability to sustain itself over time, we expect the most favorable phenotypes to be those that maximize the number of larvae that survive until reproduction while minimizing the risk of recruitment failure due to environmental stochasticity. If the mortality risk were equal everywhere, then there would seem to be little reason for larvae to travel long distances, and so evolution would favor phenotypes that reduce diffusivity. On the other hand, a greater risk of death near the shore than elsewhere would select for intermediate or high diffusivity, depending on how this risk compares with that of offshore loss.

Here, we model the passive diffusion of larvae to investigate when and how the cross-shore structure of the mortality rate impacts predictions of larval supply, as measured by the fraction of dispersing larvae that ultimately settles (or equivalently, an individual larva’s probability of settling). We also explore how a CBL interacts with the heterogeneous mortality rate, and when a CBL mitigates or exacerbates the wastage-mortality trade-off of cross-shore travel. Finally, we address the implications of these findings for alongshore movement of larvae, as represented by the duration of time larvae spend offshore compared with nearshore.

Model and methods

We present two models of larval dispersal. The first model is a reaction-diffusion equation describing how the spatial distribution of a population of larvae synchronously spawned from a homogeneous habitat changes over the course of one larval duration. The second model is a stochastic process describing the movement of an individual larva from this population. Because our emphasis is on consequences of cross-shore structure in the mortality rate and diffusivity, we included the cross-shore spatial dimension only. This is equivalent to modeling dispersal from a long, straight, homogeneous coastline where all cross-sections perpendicular to the shore exhibit the same distribution of larvae. A schematic diagram of the modeled environment is shown in Fig. 1.

Both models are non-dimensionalized in order to group together analogous biological and biophysical scenarios while reducing the number of model parameters that must be considered and improving computational efficiency (see 2.2 Non-dimensionalization of the population model).

Reaction-diffusion population model

Let \(X \ge 0\) denote cross-shore distance (km) from a coastline located at \(X = 0\). We assume that our species of interest has a post-larval habitat (from which larvae spawn and into which larvae settle) occupying a strip of width \(X_h\) adjacent to the shore; that is, the habitat is the interval \([0,X_h]\). Typical habitat widths \(X_h\) for coastal marine animals range from as narrow as 0.01 km (for animals inhabiting small rocky reefs) to as wide as 5 km or more (for animals that can thrive at a variety of depths, such as the dungeness crab) (Rasmuson 2013).

At time \(T = 0\) (days), \(N_0\) larvae are spawned with uniform density over \([0,X_h]\). The total lifespan of a larva is called the larval duration, which we denote by \(T_{LD}\). Larval durations tend to be nearly fixed for individuals of the same species in the same environment, and vary from as short as a few minutes, as in many tunicates, up to many months, as in the dungeness crab or the giant triton, with typical values in the range 5–100 days (Shanks et al. 2003; Shanks 2009). The larval duration consists of two phases: a pre-competence duration of length \(T_{PC}\) during which larvae must become sufficiently developed to undergo metamorphosis, and a competence duration of length \(T_{LD} - T_{PC}\) during which larvae are ready for metamorphosis but must locate and settle into a suitable habitat. The competence duration is finite because larvae eventually senesce or become inviable for metamorphosis (Levin 2006; Morgan 1995; Shanks 1995). In our model, settling can only occur when \(T \in [T_{PC},T_{LD}]\), and larvae that have not settled by \(T_{LD}\) are considered wasted.

If N(TX) denotes the density of larvae located X km from shore T days after spawning, then N satisfies the linear reaction-diffusion equation

$$\begin{aligned} \begin{aligned}&\partial _T N = \partial _X\big [K(X) \partial _X N\big ] - \big [R_s(T,X) + R_m(X)\big ]N, \\&N(0,X) = {\left\{ \begin{array}{ll} N_0/X_h &{}\text{ if } X \in [0,X_h], \\ 0 &{}\text{ otherwise. } \end{array}\right. } \end{aligned} \end{aligned}$$
(1)

where K(X) denotes eddy diffusivity in the cross-shore direction, \(R_s(T,X)\) denotes the rate at which larvae settle into location X at time T, and \(R_m(X)\) denotes the rate at which larvae die at location X. The boundary conditions of this model are discussed in the Boundary conditions of the reaction-diffusion model.

To capture the cross-shore structure of the mortality rate with minimal assumptions, we choose \(R_m(X)\) to be a time-constant step function that takes one value \(m > 0\) over a high mortality zone (HMZ) near the shore, \([0,X_m]\), and a potentially smaller value \(n \in [0,m]\) beyond the HMZ:

$$\begin{aligned} R_m(X) = {\left\{ \begin{array}{ll} m &{}\text{ if } X \in [0,X_m], \\ n &{}\text{ otherwise. } \end{array}\right. } \end{aligned}$$
(2)

Because the HMZ may simply be the habitat range of a predator, \(X_m\) has the same typical values as \(X_h\).

We similarly choose the settling rate to be a step function: if larvae settle with rate s into the habitat during the competence duration, but cannot settle at any other time or location, then

$$\begin{aligned} R_s(T,X) = {\left\{ \begin{array}{ll} s &{}\text{ if } X \in [0,X_h] \text{ and } T \in [T_{PC},T_{LD}], \\ 0 &{}\text{ otherwise. } \end{array}\right. } \end{aligned}$$
(3)

The cross-shore eddy diffusivity K(X) combines a coastal boundary layer (CBL) of width \(X_b \ge 0\) with a constant diffusion rate \(\bar{K} > 0\) attained beyond the CBL. The CBL usually extends as far offshore as the 30m isobath, resulting in typical CBL widths of 1-10 km (Nickols et al. 2015). Empirical results reported by Largier (2003), Okubo and Levin (2001), and Nickols et al. (2012) indicate that within the CBL, cross-shore diffusivity increases as a power law with cross-shore distance, \(K(X) \propto X^\alpha\). The exponent \(\alpha\) ranges from 0.5 to 2, with typical values slightly greater than 1 (Nickols et al. 2012). This produces the cross-shore diffusion rate.

$$\begin{aligned} K(X) = {\left\{ \begin{array}{ll} \bar{K} \cdot (X/X_b)^\alpha &{}\text{ if } X \in [0,X_b] \\ \bar{K} &{}\text{ otherwise. } \end{array}\right. } \end{aligned}$$
(4)

Simulations ignoring the effects of the CBL are run with \(X_b = 0\) and a reflecting boundary at \(X = 0\).

Model parameters and their typical ranges are summarized in Table 1.

Table 1 Summary of parameter definitions for the dimensional model (1). Ranges are meant to capture typical values, but values outside these ranges do occur in nature. More information on these parameters and their values can be found from the references provided

Non-dimensionalization of the population model

Fig. 1
figure 1

A schematic showing the trajectory of a successfully dispersing larva in the structured coastal environment described by model (1). Orange arrows indicate the strength of eddy diffusivity in the cross-shore and alongshore directions, \(K_X(X)\) and \(K_Y(X)\), under the assumption that the environment is homogeneous in the alongshore direction. Our model explicitly considers only cross-shore movement, so \(K_X\) is referred to as simply K in the text. The grey part of the larval trajectory takes place during pre-competence, \([0,T_{PC})\), and the yellow part takes place during competence, \([T_{PC},T_{LD}]\)

Non-dimensionalization, or the rescaling of variables and parameters by units (or “scales”) characteristic of larval development and dispersal, allows us represent mathematically analogous biological and biophysical scenarios using a single model while reducing the number of parameters we must consider in our analysis. Many rescalings of the model are possible. We choose the one with unitless time variable \(t = T/T_{LD}\), length variable \(x = X/X_h\), and population density \(p(t,x) = N(T,X)/N_0\). The time rescaling allows all simulations to be performed over \(t \in [0,1]\). The length rescaling enables us to vary the spatial features of greatest relevance—CBL width, HMZ width, and diffusion—relative to a fixed reference width. Importantly, the rescaled population density p(tx) can be interpreted as the probability density of an individual larva having dimensionless location x at dimensionless time t.

After non-dimensionalization, the model becomes

$$\begin{aligned} \begin{aligned}&\partial _t p = \partial _x\big [\kappa (x) \partial _x p\big ] - \big [\lambda _s(t,x) + \lambda _m(x)\big ]p, \\&p(0,x) = {\left\{ \begin{array}{ll} 1 &{}\text{ if } x \in [0,1], \\ 0 &{}\text{ otherwise. } \end{array}\right. } \end{aligned} \end{aligned}$$
(5)

with dimensionless diffusion rate

$$\begin{aligned} \kappa (x) = {\left\{ \begin{array}{ll} \bar{\kappa }\cdot (x/x_b)^\alpha &{}\text{ if } x \in [0,x_b], \\ \bar{\kappa } &{}\text{ otherwise, } \end{array}\right. } \end{aligned}$$
(6)

and dimensionless settling rate

$$\begin{aligned} \lambda _s(t,x) = {\left\{ \begin{array}{ll} \sigma &{}\text{ if } x \in [0,1] \text{ and } t \in [t_{pc},1], \\ 0 &{}\text{ otherwise. } \end{array}\right. } \end{aligned}$$
(7)

In defining the dimensionless mortality rate, \(\lambda _m(x)\), it is useful to define the “offshore mortality ratio”

$$\begin{aligned} \varepsilon = n/m \end{aligned}$$
(8)

so that we may separately vary near- and offshore mortality rates in our analysis without violating \(m \ge n \ge 0\). This gives us the dimensionless mortality rate

$$\begin{aligned} \lambda _m(x) = {\left\{ \begin{array}{ll} \mu &{}\text{ if } x \in [0,x_m], \\ \varepsilon \mu &{}\text{ otherwise. } \end{array}\right. } \end{aligned}$$
(9)

Note that \(\varepsilon \in [0,1]\), with \(\varepsilon = 0\) and \(\varepsilon = 1\) corresponding to an offshore mortality rate of 0 and a spatially uniform mortality rate of \(\mu\), respectively. Parameters from the dimensionless model (5) are summarized in Table 2.

Table 2 Summary of parameters for the non-dimensionalized model (5). As in Table 1, ranges refer to typical ranges but do not include all possible cases

Associated individual stochastic process

It can be shown (see Equivalence of the reaction-diffusion and stochastic individual models) that the position, \(\xi _t\), of an individual larva governed by model (5) satisfies a “killed” stochastic differential equation (Karlin and Taylor 1981)

$$\begin{aligned} \begin{aligned}&d\xi _t = f(\xi _t)\ dt + g(\xi _t)\ dB_t, \quad 0 \le t \le \tau , \\&\xi _0 \sim \text{ uniform }([0,1]), \end{aligned} \end{aligned}$$
(10)

where

$$\begin{aligned} f(\xi ) = \frac{d\kappa }{dx}(\xi ) \text{ and } g(\xi ) = \sqrt{2\kappa (\xi )}. \end{aligned}$$
(11)

In this context, “killing” means that this process terminates at a random time \(\tau \le 1\) if death or settling occurs. Over any short time-step \([t,t + \delta t) \subset [0,1]\), the process located at \(\xi _t = x\) terminates due to death or settling, respectively, with probabilities

$$\begin{aligned}&\Pr \{\text{ death } \text{ in } [t,t + \delta t)\ |\ \xi _t = x\} = \lambda _m(x) \delta t + o(\delta t), \nonumber \\&\Pr \{\text{ settling } \text{ in } [t,t + \delta t)\ |\ \xi _t = x\} = \lambda _s(t,x)\delta t + o(\delta t), \end{aligned}$$
(12)

where \(o(\delta t)\) represents terms that decay faster than \(\delta t\) as \(\delta t \searrow 0\) (Karlin and Taylor 1981). If neither settling nor death occurs before \(t = 1\), then \(\tau = 1\) and wastage occurs. The probability density function of \(\xi _t\) on the event that neither form of killing has yet occurred is p(tx), the solution to model (5).

Computing important quantities

The journey of every larva terminates in either settling, wastage, or mortality. The probability of each outcome can be computed from p(tx) (see Appendix 5.3):

$$\begin{aligned} S&= \Pr \{\text{ settling }\} ={\int _0^1 \int _0^\infty p(t,x) \lambda _s(t,x)\ dx\ dt,} \end{aligned}$$
(13)
$$\begin{aligned} W&= \Pr \{\text{ wastage }\} = \int _0^\infty p(1,x)\ dx, \end{aligned}$$
(14)
$$\begin{aligned} M&= \Pr \{\text{ mortality }\} = \int _0^1 \int _0^\infty p(t,x) \lambda _m(x)\ dx\ dt. \end{aligned}$$
(15)

Note that expressions (13) and (15) are proportional to the average values of the settling and mortality rates over space and time, respectively, weighted by the probability density of the larva’s position over time. Also, by definition,

$$\begin{aligned} S + W + M = 1. \end{aligned}$$
(16)

Adult female benthic invertebrates can spawn anywhere from \(10^2\) to \(10^9\) eggs, depending on egg size and fertilization rates (Christiansen and Fenchel 1979; Levitan 1995; Rumrill 1990; Thorson 1950). Supposing that the number of fertilized eggs falls in the range \(10^2 \le N_0 \le 10^7\) per adult, and that each adult produces between 1 and 100 successful offspring (so that populations can replace themselves, even after post-larval mortality), we expect S to take very small values, on the order of \(10^{-7}\le S \le 10^{-2}\) (Rumrill 1990). S should be regarded as a non-dimensional measurement of larval supply, or the total number of larvae returning to a coastal habitat that may recruit to the reproductive (post-larval) population.

Alongshore currents typically vary and increase in magnitude with offshore distance (Largier 2003; Largier et al. 1993; Nickols et al. 2012). Therefore, we shall use the amount of time (or, given the nondimensionalization, the fraction of the larval duration) that larvae spend farther offshore than \(x > 0\) (km) prior to settling as a proxy for potential alongshore movement. This quantity is denoted by a random variable depending on x,

$$\begin{aligned} \begin{aligned}&\theta (x) = \int _0^1 \mathbf{1}_{(x,\infty )}(\hat{\xi }_t)\ dt, \\&\text{ where } \mathbf{1}_{A}(a) = {\left\{ \begin{array}{ll} 1 &{}\text{ if } a \in A, \\ 0 &{}\text{ if } a \notin A. \end{array}\right. } \end{aligned} \end{aligned}$$
(17)

Here, \(\hat{\xi }_t\) is the individual process (10) conditioned upon dispersal terminating in settling, rather than mortality or wastage. We shall approximate the distribution of \(\theta (x)\) for \(x = 10\) by repeatedly simulating the individual model and computing \(\theta (x)\) only for trials in which settling occurs. While this distribution could be computed deterministically from equations resembling (5), finer resolution can be attained in far less computation time through stochastic simulations.

Results

How is larval supply affected by a spatially heterogeneous mortality rate?

Fig. 2
figure 2

Impact of the offshore mortality rate on estimated probability of settling. a Probability of survival, S, as a function of the offshore mortality ratio, \(\varepsilon\), for fixed nearshore mortality rates \(\mu = 2\) (blue), 6 (red), 10 (green). b Probability of survival, S, as a function of the offshore mortality ratio, \(\varepsilon\), with probability of mortality, M, fixed at values obtained using uniform mortality rates \(\mu _0 = 2\) (blue), 6 (red), 10 (green). c Nearshore mortality rates, \(\mu\), required to keep M constant as \(\varepsilon\) is varied in b. Recall that the estimate from a uniform mortality rate appears on the right of a and b, where \(\varepsilon = 1\). Note the logarithmic vertical axes used to display S in this figure

We explore the relationship between the probability of settling, S, and the offshore mortality ratio, \(\varepsilon\), in Fig. 2 in two scenarios: fixed nearshore mortality, and fixed total (or average) mortality.

Fixed nearshore mortality rate

In this scenario, the dimensionless nearshore mortality rate, \(\mu\), is held constant while the offshore mortality ratio, \(\varepsilon\), is varied from 0 to 1. This describes the effect of unknown offshore mortality when only a nearshore rate has been measured. The value of S obtained when \(\varepsilon = 1\) represents an estimate of larval return obtained by assuming the nearshore mortality rate holds at all offshore locations. Varying \(\varepsilon\) alone is also useful for considering the effect of the offshore mortality rate in isolation. However, the following results should be interpreted with the caveat that varying \(\varepsilon\) also affects the average mortality rate.

The probability of settling, S, strictly decreases with the offshore mortality ratio, \(\varepsilon\), when dimensionless nearshore mortality, \(\mu\), is fixed. This is because increasing \(\varepsilon\) increases the total mortality rate over the entire coastal environment, \(x \in [0,\infty )\). The magnitude of this effect varies positively with the nearshore mortality rate: over the range \(\varepsilon = 0\) to 1, S varies by a factor of \(\sim\)2.5 when \(\mu = 2\), compared with \(\sim\)20 when \(\mu = 10\). This increased sensitivity to the offshore mortality ratio as the nearshore mortality rate is increased suggests that when nearshore mortality is high, the risk of offshore wastage may be outweighed by the benefit of escaping nearshore predation.

This trend was not qualitatively changed by varying the width \(x_m\) of the high mortality zone (HMZ), which lessens the effect of the offshore mortality rate by increasing exposure to the nearshore rate. It was also not qualitatively affected by varying dimensionless eddy diffusivity, \(\bar{\kappa }\), although increasing \(\bar{\kappa }\) reduces the overall fraction of larvae that settles and steepens the relationship between S and \(\varepsilon\). This results in a greater difference between the case \(\varepsilon = 1\) and any case with \(\varepsilon < 1\).

Fixed total mortality

In this scenario, the probability of mortality, M, (which is proportional to the total number of larvae that die) is held constant at the value obtained assuming a uniform mortality rate (\(\mu = \mu _0\) and \(\varepsilon = 1\)) while the offshore mortality ratio \(\varepsilon\) is varied between 0 and 1. To keep M constant, the nearshore mortality rate \(\mu\) is decreased as \(\varepsilon\) is increased (Fig. 2c). This describes the effect of unknown offshore mortality when only the fraction of larvae that perish has been estimated. The value of S obtained when \(\varepsilon = 1\) represents an estimate of larval return obtained by fitting a uniform mortality rate to measurements of a potentially heterogeneous one.

Generally, S increases slightly with the offshore mortality ratio \(\varepsilon\), but is largely insensitive to this parameter while total mortality is constant. In all three mortality schemes considered, S varies by \(\sim\)4.1 fold or less over the range \(0.053 < \varepsilon \le 1\). However, S is very sensitive to changes in \(\varepsilon\) when \(\varepsilon\) is small and total mortality is high. For instance, when \(\mu _0 = 10\), S increases by nearly 50-fold over \(0 \le \varepsilon \le 0.053\) (Fig. 2b). This sharp increase is more likely driven by the decrease in \(\mu\) possible when even a small amount of offshore mortality is permitted (e.g., the transition from \(\varepsilon = 0\) to \(\varepsilon > 0\)), illustrated in Fig. 2c). These trends are qualitatively unchanged by varying HMZ width, \(x_m\), and eddy diffusivity, \(\bar{\kappa }\).

The increasing relationship between the probability of settling, S, and the offshore mortality ratio, \(\varepsilon\), when total mortality is fixed may be counter-intuitive, but is clear when considered alongside the relationship between \(\mu\) and \(\varepsilon\) shown in Fig. 2c: increasing \(\varepsilon\) while decreasing \(\mu\) redistributes the mortality risk from nearshore larvae, which are more likely to locate suitable habitats if they can survive for sufficiently long, to offshore larvae, which are more likely to be wasted.

How is the relationship between diffusivity and larval supply affected by a spatially heterogeneous mortality rate?

Fig. 3
figure 3

The structure of the offshore mortality rate affects how the probability of settling, S, depends on diffusivity, \(\bar{\kappa }\). When the mortality rate varies substantially over regions larvae traverse, S may be maximized by intermediate diffusivities. a Probability of settling, S, as a function of dimensionless eddy diffusivity, \(\bar{\kappa }\), in the following mortality schemes: \(\varepsilon = 1\) (blue), \(\varepsilon = 0\) and \(x_m = 1\) (green), and \(\varepsilon = 0\) and \(x_m = 2\) (red). b and c display the critical value(s) of diffusivity, \(\bar{\kappa }_*\), at which S is locally maximized (filled circles) or minimized (open squares) for each \(0 \le \varepsilon \le 1\)

We varied \(\bar{\kappa }\) and \(\varepsilon\) while holding \(\mu\) constant to understand the relationship between dimensionless diffusivity, dimensionless mortality, and the probability of settling, S, when mortality risk is elevated nearshore. We did not hold total mortality constant, as was done in the previous section, because we are specifically interested in how a low-mortality region offshore interacts with the rate of movement of the larva.

When the mortality rate is spatially uniform (\(\varepsilon = 1\)), the probability of settling strictly decreases with diffusivity (Fig. 3a). For instance, when \(\mu = 10\), S decreases by a factor of \(\sim\)18 over the range \(1 \le \bar{\kappa }\le 1000\). This reflects an increased probability of wastage as movement over large distances relative to the size of the habitat becomes more likely. This result holds independently of \(\mu\). Qualitatively similar trends appear when the mortality rate is weaker offshore (\(\varepsilon < 1\)) provided that the nearshore mortality rate is also weak, such that the difference between the HMZ and offshore is small and has little effect on overall mortality. The same trend also appears when the HMZ is narrower (or wider) than the habitat by an order of magnitude or more, such that larvae spend nearly all time prior to settling offshore of (or within) the HMZ, and are thus affected little by the heterogeneous mortality rate (compare, for instance, the blue and red curves in Fig. 3a).

When the dimensionless mortality rate is high (\(\mu\) is large) and spatially heterogeneous (\(\varepsilon < 1\)), and the HMZ is similar in width to the habitat, the probability of settling may vary non-monotonically with diffusivity. The green curve in Fig. 3a illustrates this in the extreme case \(x_m = 1\) and \(\varepsilon = 0\) (no mortality beyond the habitat), where S attains a global maximum at a dimensionless diffusivity \(100< \bar{\kappa }< 1000\). Importantly, \(\bar{\kappa }= 1\) (the smallest tested value of \(\bar{\kappa }\)) is a local minimum of S in this case, rather than a global maximum as in the uniform mortality case. In the case shown by the green curve in Fig. 3a, S is \(\sim\)1.8 times larger at its global maximum than at \(\bar{\kappa }= 1\). This suggests that despite an increased risk of wastage, moderately fast movement relative to the width of the habitat can be beneficial when the nearshore environment is very dangerous compared to the offshore one. The emergence of an intermediate optimal diffusion rate when \(\varepsilon\) is sufficiently small is shown for \(x_m = 1\) in Fig. 3b.

When mortality is high and the HMZ is larger than the habitat, S is maximized by very small and intermediate dimensionless diffusivities, but attains a relative minimum at moderately small diffusivities. In the case shown by the red curve in Fig. 3a, the values of S at its local and global maxima (at \(\bar{\kappa }= 1\) and in \(100< \bar{\kappa }< 1000\), respectively), are greater than the value of S at its local minimum at \(1< \bar{\kappa }< 10\) by factors of \(\sim\)1.3 and \(\sim\)2.3, respectively. The emergence of both local maxima and minima of S as the offshore mortality ratio decreases is illustrated in Fig. 3c. This trend suggests that high diffusivity relative to the habitat width is beneficial if it is intense enough to transport larvae beyond the HMZ, but deleterious if it merely moves larvae from the habitat into the dangerous region between the offshore edge of the habitat and the offshore edge of the HMZ.

Another important feature of these heterogeneous high mortality cases is that despite these intermediate extrema, S varies little over \(1 \le \bar{\kappa }\le 1000\) compared with the uniform (or near-uniform) mortality cases considered. In the cases \(x_m = 1\) and 2, the maximal and minimal values of S over this range of \(\bar{\kappa }\) are within a factor of 3 of each other, compared with the factor of 18 observed in the uniform mortality case. The insensitivity of S to \(\bar{\kappa }\) in these cases indicates that reduced offshore mortality ensures that some larvae always survive and settle, even when diffusivity is strong.

How is the relationship between CBL width and larval supply affected by a spatially heterogeneous mortality rate?

Fig. 4
figure 4

Probabilities of a settling, S, b mortality, M, and c wastage, W, as functions of coastal boundary layer (CBL) width, \(x_b\), with mortality rate \(\mu = 6\) and the following mortality rate structures: \(\varepsilon = 1\) (blue), \(\varepsilon = 0\) and \(x_m = 1\) (green), and \(\varepsilon = 0\) and \(x_m = 3\) (red). Typically, M increases and W decreases with \(x_b\), such that S may vary non-monotonically with \(x_b\). Note that the vertical axes in this figure are linear, but have different maxima

Here, we introduce a CBL of width between 0 and 10 times that of the habitat (\(0 \le x_b \le 10\)) to explore the interactive effects of low diffusivity and high mortality in the region close to shore. The probability of wastage, W, seems always to decrease with respect to CBL width (Fig. 4c), as reduced diffusivity close to shore slows the movement of larvae away from their spawning sites within the habitat. When the mortality rate is spatially uniform, this reduced movement away from the habitat also shortens the mean time larvae spend dispersing prior to settling, causing the probability of mortality, M, to decrease slightly with \(x_b\) (Fig. 4b). Combined, these trends result in the probability of settling, S, increasing with respect to CBL width. In the case represented by the blue curve in Fig. 4a, S increases by a factor of 5.9 over \(0 \le x_b \le 10\).

By contrast, when the mortality rate is higher nearshore than offshore, M increases with \(x_b\) (Fig. 4b). This is because a wider CBL reduces the probability of a larva escaping the HMZ to benefit from the safer offshore environment. Due to the relationship (16) and the opposite trends of M and W with \(x_b\), S may increase, decrease, or vary non-monotonically with CBL width. If the HMZ is far narrower than the adult habitat or nearshore mortality is weak, then the trend between S and \(x_b\) resembles that of the uniform mortality case. However, if the HMZ is similar in size to the habitat, S decreases over smaller CBL widths (\(x_b \lessapprox 4\)), but increases over greater widths (Fig. 4a). A small to medium CBL increases mortality by retaining larvae in the HMZ, but does not substantially reduce wastage. A large CBL also retains larvae in the HMZ, but this cost is outweighed by a large decrease in wastage.

How might a spatially heterogeneous mortality rate influence alongshore transport?

Fig. 5
figure 5

Overlapping histograms of \(\theta (10)\), the fraction of the larval duration spent offshore of \(x = 10\), for 10\(^4\) successful larvae in a uniform mortality rate (\(\varepsilon = 1\), blue) and a heterogeneous mortality rate (\(\varepsilon = 0\), red). The purple region indicates overlap between these two histograms. All other parameters are set to the default values in Table 2. In the heterogeneous mortality case, larvae typically spend more time far offshore prior to settling than in the uniform case

We simulated the stochastic individual model (10) in two mortality schemes, uniform (\(\varepsilon = 1\)) and heterogeneous (\(\varepsilon = 0\)), until we obtained \(10^4\) simulations terminating in settling for each case. These simulations were used to estimate the distribution of \(\theta (10)\) (time spent farther offshore than \(x = 10\) prior to settling), a proxy for alongshore movement. The resulting histograms are shown in Fig. 5. The reference distance \(x = 10\) was chosen because it is far enough offshore that, excluding potential effects of the mortality rate structure, larvae with \(\kappa = 100\) are similarly likely to spend a long time within or beyond this distance. However, similar results are obtained using different values of x.

We observed that settling larvae are more likely to spend time far offshore when the mortality rate offshore is weak compared to when the mortality rate is spatially uniform. In particular, the distribution of \(\theta (10)\) is has mean 0.51 in the heterogeneous case, compared with 0.42 in the uniform case. Additionally, in the heterogeneous case, 47% of successful larvae spend more than half of the larval duration beyond \(x = 10\) (that is, \(\theta (10) > 0.5\)), compared with only 21% in the heterogeneous case. These results suggest that in an environment where alongshore currents vary in the cross-shore direction, the spatial structure of the mortality rate may have a large effect on the currents to which dispersing larvae are subject.

The differences in the distribution of \(\theta (10)\) across mortality rate structure are more pronounced at greater nearshore mortality rates \(\mu\), but the overall results are not changed. At lower values of \(\mu\), the distributions of \(\theta (10)\) are nearly the same, although larvae still spend more time offshore in the heterogeneous case than in the homogeneous case. We did not observe any qualitative changes to these results as the widths of the CBL and HMZ were adjusted.

Discussion

Our analysis reveals that although the results and intuition provided by several past models appear unchanged by the structure of the coastal environment, there exist conditions in which larval supply may be highly sensitive to changes in the offshore mortality rate. These conditions include high mortality and diffusivity, such that larval supply is severely constrained by death and wastage. In such cases, we saw that assuming the nearshore mortality rate applies at all offshore locations can result in a substantial underestimate of larval supply. By contrast, using an average of total observed mortality over all locations, weighted by where larvae spend the most time, results in a more robust estimate of larval supply unless the difference between the near- and offshore mortality rates is extreme.

We affirm the prior result that strong diffusivity often reduces settling by increasing wastage. However, this is not necessarily the case when the mortality rate is greater nearshore than offshore. Under this condition, settling can increase or vary non-monotonically with diffusivity due to the trade-off between the high probability of wastage larvae face offshore and the potentially higher risk of mortality they face nearshore. The same trade-off results in cases in which a low-diffusion coastal boundary layer (CBL) reduces, rather than increases, the proportion of larvae that settles. Under weak or spatially uniform mortality, the CBL reduces wastage and has little effect on mortality, thus increasing settling. When the mortality rate is greater nearshore than offshore, however, this reduction in wastage is outweighed by increased mortality due to slow movement in the nearshore high mortality zone (HMZ), unless the CBL is very wide.

Finally, we found that cross-shore heterogeneity in the mortality rate may affect alongshore travel by influencing the proportion of the larval duration a successful individual spends offshore, and, consequently, the alongshore currents to which they are exposed. This difference is particularly pronounced when nearshore mortality is moderate or high, and is notable because cross-shore structures are often omitted from studies of alongshore dispersal.

Interpretation of the dimensionless results

Our analysis primarily focused on the relationship between the probability of settling, S, and the unitless parameters describing the structure of the mortality rate and coastal environment in a non-dimensionalized model, (5). We identified the dimensionless nearshore mortality rate, \(\mu = mT_{LD}\), and the dimensionless diffusion rate, \(\kappa (x) = K(X) T_{LD}/X_h^{2}\), as two of the most important determinants of whether offshore structure impacts the probability of settling. The exact effects of these parameters depend on the widths of the high mortality zone (HMZ) and the CBL relative to that of the habitat, \(x_m = X_m/X_h\) and \(x_b = X_b/X_h\), respectively. These dimensionless results should be understood as commenting on the relationship between larval supply and the true parameters from which the dimensionless ones are constructed: larval duration, \(T_{LD}\); nearshore mortality rate, m; diffusion rate, K; and habitat, HMZ, and CBL widths, \(X_h,X_m,X_b\), respectively. A thread that runs through our analysis is the question of which subset of dispersing larvae provides a greater share of the settling population: that which remains close to shore, or that which travels far offshore.

The dimensionless nearshore mortality rate, \(\mu\), can be interpreted as mortality exposure because it combines the mortality rate, m, with the duration of the exposure to this rate, \(T_{LD}\). When larvae face little nearshore mortality exposure due to a short larval duration or a low mortality rate, many larvae that remain close to the habitat and HMZ survive until competence and are well-positioned to settle, while larvae traveling far away comprise a smaller fraction of the settling population because comparatively few are diffused back to the habitat before wastage occurs. High nearshore mortality exposure due to a long larval duration or a high mortality rate results in far fewer larvae surviving close to shore. This increases the relative fraction of settlers that have been mostly offshore. The size of this latter subpopulation depends on the offshore mortality rate, resulting in greater sensitivity of the overall larval supply to offshore conditions. A wide HMZ reduces sensitivity to offshore conditions simply by reducing the number of larvae that experience reduced mortality exposure offshore.

The dimensionless diffusion rate \(\kappa = KT_{LD}/X_h^2\) represents exposure to eddy diffusion (scaled by the width of the habitat, \(X_h\)). Our analysis supports prior results in the literature, which state that greater exposure to diffusion due to oceanographic conditions or a long larval duration typically increases wastage and reduces larval supply in the absence of advection or locomotion (Cowen et al. 2000; Largier 2003). Increased wastage is also achieved by reducing the size of the post-larval habitat, \(X_h\), which increases diffusion exposure in our model. However, we also observed that when larvae experience high mortality exposure over or near their post-larval habitat and weaker mortality exposure elsewhere, the probability of settling S is maximized by intermediate diffusion exposure (i.e., just enough to transport larvae away from nearshore hazards without risking excessive offshore wastage). This underscores the trade-off larvae face due to the spatial segregation of two forms of larval loss, mortality and wastage. Weak diffusion exposure due to low eddy diffusivity, a short larval duration, or a large habitat (contained in a larger HMZ) prevents individuals from moving far enough offshore to benefit from the heterogeneous mortality rate. On the other hand, strong diffusion exposure due to high eddy diffusivity, a long larval duration, or a small habitat results in too many larvae failing to return to shore before expiration. The optimum is attained when larvae diffuse just fast enough or for just long enough to escape nearshore dangers, but not faster or longer.

When the HMZ is broader than the habitat, one sees a minimum of S at a low diffusion exposure. This indicates that when the habitat is separated from safer offshore conditions by a hazardous non-habitat zone, diffusing too slowly or for too little time is worse than not diffusing at all because it allows larvae to be wasted without sufficient reprieve from nearshore conditions. The maxima at either very low or intermediate diffusivities represent two possible strategies that may appear in nature through selection. Species can feature either short larval durations compared to the size of their habitats or adaptations for weak diffusivity, or else they can have moderately long larval durations or adaptations for moderate diffusivity. This theoretical result supports the observation of Shanks et al. (2003) and Shanks (2009) that dispersal distances are bimodally distributed—usually short or long, but rarely intermediate—even though larval durations are continuously distributed.

Another important consequence of S being maximized by intermediate diffusion exposure is that S is also least sensitive to variations in diffusion exposure about the optimal value, due to \(dS/d\bar{\kappa }= 0\) at a local optimum. Therefore, intermediate diffusion exposure results in the greatest larval supply possible as well as the least susceptibibility to extinction due to environmental variability. One might expect some species with planktonic larvae to have adaptations for achieving moderate diffusion exposure through body structures, behaviors, and dispersal and developmental duration. This suggests that a long larval duration can be advantageous per se in a coastal environment with mortality exposure concentrated nearshore, and is not necessarily the result of development time or an adaptation for alongshore dispersal alone.

Interactive effects of the CBL and mortality rate heterogeneity upon larval supply and loss

Studies that have excluded spatial heterogeneity in the larval mortality rate have previously concluded that nearshore retention zones, such as CBLs, strictly improve larval supply by reducing wastage (Largier 2003; Largier 2004; Nickols et al. 2015). We verified that settling increases with CBL width in the case of a spatially uniform mortality rate, as well as when the mortality rate is heterogeneous but weak. In the low-mortality case, the probability of mortality increases with CBL width because reduced diffusion exposure nearshore prevents larvae from escaping the HMZ. However, this increase in mortality was outweighed by the reduction in wastage in all cases we considered. In other words, there is no apparent trade-off between nearshore mortality and offshore wastage in the presence of a CBL.

The effect of the CBL is less consistent for heterogeneous mortality with high nearshore mortality. When the habitat and the HMZ have similar widths, reduced wastage due to a narrow or medium CBL is offset by increased mortality in the same region. As a result, a narrow or medium CBL reduces larval supply. A CBL extending beyond the HMZ, however, can further reduce wastage while only slightly increasing mortality nearshore, resulting in improved larval supply. The trade-off between nearshore mortality and offshore wastage is evident when considering the effect of CBL width, as it is impossible for the CBL to reduce wastage without increasing mortality simultaneously.

Implications for alongshore movement

Although the focus of this study has been on cross-shore movement, we emphasize that the cross-shore heterogeneity of the mortality rate is likely to have consequences for alongshore movement as well. Advection and diffusion in the alongshore direction frequently increase with distance from the shore, particularly in the presence of a CBL (Largier 2003; Largier 2004; Largier et al. 1993; Nickols et al. 2012). The modeling study of Largier (2003) showed that alongshore dispersal distance tends to increase nonlinearly with larval duration due to increased exposure to stronger alongshore currents far offshore. We illustrated here that successful larvae with longer larval durations (as well as those facing high nearshore mortality risks) spend more time offshore prior to settling when the mortality rate is weaker offshore. Successful larvae are also likely to experience strong alongshore currents, resulting in greater alongshore dispersal distances than would be predicted using a model with a spatially uniform mortality rate.

When is the cross-shore structure of the mortality rate important (or not)?

Researchers have historically omitted spatial heterogeneity in the mortality rate (or, in some cases, mortality in any form) from mathematical models of larval dispersal because it is poorly quantified, adds model complexity (i.e., increases the number of parameters that must be estimated), and may not seem relevant to the goals of a study, such as predicting alongshore dispersal (Cowen et al. 2000; Largier 2003; Nickols et al. 2015; Siegel et al. 2008). Our results indicate that excluding this heterogeneity may be safe in some settings, but may alter model predictions in others. In particular, heterogeneity may be ignored when:

  1. 1.

    The species of interest has a short larval duration. Since \(\mu\) and \(\kappa\) both depend linearly on \(T_{LD}\), species with short larval durations will generally experience lower nearshore mortality and diffusivity exposure. Because larval supply and offshore duration vary with the offshore mortality rate and HMZ width only when \(\mu\) (and secondarily, \(\kappa\)) is sufficiently large, larval supply and alongshore movement will not be substantially affected by mortality rate heterogeneity in species with short larval durations.

  2. 2.

    The species of interest has a long larval duration, but experiences weak nearshore predation or diffusion (perhaps due to a wide CBL), or can settle into a large region in the environment of interest. If \(T_{LD}\) is large, but the nearshore mortality rate m is small, then larvae will face little nearshore mortality exposure. Similarly, larvae will face weaker diffusivity exposure (compared to habitat width) if true diffusivity is weak, or if the habitat is large. These conditions result in small \(\mu\) and \(\kappa\), even when \(T_{LD}\) is large, with the same outcome as mentioned in the short \(T_{LD}\) case. Note that increasing the width, \(X_b\), of the CBL decreases the value of K(X) over each point \(X \in [0,X_h]\) for \(X_b > X_h\), so a wide CBL has a similar effect to low diffusivity.

  3. 3.

    The species of interest experiences high predation nearshore, and its predators occupy a region extending offshore of the species’ habitat. Such species experience high nearshore mortality exposure, \(\mu\). If the mortality rate is similar offshore over distances larvae are most likely to travel given their larval duration, the diffusion rate, and the size of the CBL, then most larvae may never experience reduced mortality rates offshore, and those that do are unlikely to settle.

Although mortality rates are notoriously difficult to quantify in the field, some of these criteria depend on well-known aspects of the species of interest (e.g., larval duration), measurable features of the nearshore environment (e.g., diffusivity and CBL structure), and the habitats of the species of interest and its nearshore predators. Thus, researchers need not directly measure the offshore mortality rate to determine whether that rate will influence model results. Additionally, while measurements of the offshore mortality rate may sometimes be necessary, models using a uniform mortality rate can still provide reasonable estimates of larval supply if measurements are appropriately averaged over locations and time.

In the scenarios in which weak offshore mortality may influence estimates of larval supply and alongshore movement, researchers must decide on a case-by-case basis whether these quantitative differences are important, and whether they may lead to qualitative differences as well. Two examples in which qualitative differences might result from weak offshore mortality arise in coastal population dynamics:

  1. 1.

    Complex life cycles: species with dispersive larvae have “complex” life cycles, in the sense that they have two or more life stages (larvae and post-larvae) that occupy different habitats (the plankton and the benthos). Roughgarden et al. (1988) observed that while some coastal post-larval populations are relatively stable from year to year, others exhibit large fluctuations. Using a two-life-stage model of coastal population dynamics, the authors showed that larval supply can be subject to annual variability. This results in fluctuations in the post-larval population unless the larval supply is consistently large enough to saturate the post-larval population’s carrying capacity. Incorrect estimates of larval supply due to mischaracterization of the larval mortality rate, including its spatial structure, could result in the incorrect classification of a population as limited by larval supply rather than by post-larval carrying capacity.

  2. 2.

    Metapopulation connectivity: the extent to which alongshore movement allows nearby populations to exchange individuals and act as sources or sinks has long been a focus of the larval ecology and modeling literature (Cowen et al. 2006; Cowen and Sponaugle 2008; Largier 2003; O’Connor et al. 2007; Siegel et al. 2008; Swearer et al. 2002; Taylor and Hellberg 2003). In particular, many studies have sought to estimate the dispersal kernels (probability density functions of where larvae spawned from a given location ultimately settle) of species in particular environments (Siegel et al. 2003; Shanks 2009; Shaw et al. 2019). We have shown that when the mortality rate is weaker offshore than nearshore, successful larvae tend to spend proportionally more time offshore of the habitat prior to settling than would be estimated with a spatially uniform mortality rate. Given the relationship between offshore distance and alongshore currents (Largier 2003), this might result in dispersal kernels with heavier tails (i.e., greater variance) than would otherwise be predicted.

Omitted biophysical features and future directions

Several important aspects of marine larval biology and coastal oceanography were omitted from this analysis in order to highlight the effects of cross-shore heterogeneity in the larval mortality rate. For instance, our model considers larvae to be totally passive floaters moved only by random, time-homogeneous diffusion, with net advection due to currents and locomotion ignored. While variability in larvae’s positions due to phenomena on length- and timescales shorter than those of dispersal (e.g., day-night cycles) are averaged into the eddy diffusivity, we have not accounted for phenomena that add variance on scales greater than or equal to those of dispersal (e.g., monthly cycles and longer) or that do not average to zero (Largier 2003; Okubo and Levin 2001), resulting in nonzero advection or time-varying diffusion.

From the results presented here, we hypothesize that net-offshore advection would result in a lower probability of settling due to fewer larvae returning to shore, more settled larvae arriving after a long offshore duration, and thus greater sensitivity of the larval supply and alongshore movement to the offshore mortality rate. By contrast, net-onshore advection would result in fewer larvae moving offshore. When the mortality rate is higher nearshore than offshore, these larvae would experience high mortality rates, while the exceptionally rare ones diffused offshore would comprise the majority of settlers, just as we observed here in the absence of advection.

Larvae of many species use locomotion to influence their net advection and diffusion, often in different ways during different stages of dispersal (Shanks 1995; Young 1995). Organisms with less sophisticated sensory abilities may move randomly to increase their diffusivity, which in turn may increase the probability of moving long distances at times when it is convenient to do so, effectively producing a time-dependent eddy diffusivity (Young 1995). Pre-competent larvae in species with stronger buoyancy control may reside near-surface at night to exploit an offshore current driven by the land breeze, then descend toward the bottom during the day to escape the opposite sea breeze current, resulting in net-offshore advection. These organisms use an opposite pattern during competence to ensure movement back to the coastal habitat (Shanks 1995). That some larvae actively move offshore early in development is often attributed to the intense predation risk larvae face near the coast, which was the focus of this paper. We anticipate that by neglecting cross-shore movement due to locomotion, we have underestimated the probability of settling and its sensitivity to the offshore mortality rate.

Finally, we have focused only on larval supply and one proxy measurement for alongshore dispersal, while ignoring other other benefits of dispersal and complex life cycles (including those mentioned in the Introduction). A provocative question in the larval ecology literature is if dispersal is so dangerous, why do some organisms have such long larval durations? Our analysis identified one instance in which a long larval duration might result in a greater larval supply: when the mortality rate is high over the entire habitat and weaker offshore, a longer larval duration may allow larvae to exit the habitat during pre-competence and return before wastage. In other cases, species with long larval durations must experience other benefits that outweigh the reduction in larval supply predicted by most models. Longer larval durations may allow an individual’s offspring to spread over a wider range, hedging bets against stochastic events that might wipe out all larvae present in a particular time and location. Another possibility, which has been observed in some species, is that larval durations are coordinated with seasonal changes in the coastal ecosystem: spawning and the larval duration can be timed so that larvae settle in specific locations or at specific times (Donahue et al. 2015; Morgan 1995). Incorporating these parent-controlled benefits of larval duration and release timing into models of dispersal is essential for understanding the ecology and evolution of organisms with planktonic larvae. Investigating how these mechanisms interact with offshore heterogeneities presents an interesting direction for future research.