Abstract
We use adaptive dynamics models to study how changes in the abiotic environment affect patterns of evolutionary dynamics and diversity in evolving communities of organisms with complex phenotypes. The models are based on the logistic competition model, and environmental changes are implemented as a temporal change of the carrying capacity as a function of phenotype. In general, we observe that environmental changes cause a reduction in the number of species, in total population size, and in phenotypic diversity. The rate of environmental change is crucial for determining whether a community survives or undergoes extinction. Until some critical rate of environmental changes, species are able to follow evolutionarily the shifting phenotypic optimum of the carrying capacity, and many communities adapt to the changing conditions and converge to new stationary states. When environmental changes stop, such communities gradually restore their initial phenotypic diversity.
Keywords: adaptation, environmental changes, extinction
We use adaptive dynamics models to study how changes in the abiotic environment, such as climate change, affect patterns of evolutionary dynamics and diversity in evolving communities of organisms with complex phenotypes. We observe that the rate of environmental change is a crucial factor that determines whether the community survives and adapts to the changing conditions or undergoes extinction. In the majority of surviving systems, we observe a reduction in the number of species, total population size, and phenotypic diversity.

1. INTRODUCTION
Over the past decades, the issue of the impact of changing environmental conditions on species and ecosystems has gained increasing prominence, particularly in the context of global warming (Trisos, Merow, & Pigot, 2020). Recent estimates have shown that at the current rate of global warming, one of six species will become extinct (Urban, 2015), and empirical evidence supports this finding (Maclean & Wilson, 2011). Already there are species whose extinction occurred as a result of climate change. For example, the sea level rise has destroyed the habitat of mosaic‐tailed rat (Melomys rubicola) and individuals of this species have not been seen since 2009 (Gynther, Waller, & Leung, 2016). Many species, such as polar bears (Ursus maritimus), experience ecological stress. For hunting, this species relies on sea ice, where seals, their primary source of food, rest, and breed. Reduction in ice surfaces forces polar bears to overcome long distances by swimming and thus strongly affects the balance between anabolism and catabolism (Lone et al., 2018). Several studies detected muscle atrophy and weight loss in polar bears because of starvation and changes in metabolism of lipids (Griffen, 2018; Obbard et al., 2016; Pagano et al., 2018; Tartu et al., 2017; Whiteman et al., 2017).
However, the majority of ecosystems are characterized by extensive adaptability. While changing environmental factors often lead to diversity reduction, in general many ecosystems will likely survive. For example, this is currently observed in coral reefs. Increasing temperature and acidification of the ocean water affect the symbiotic relationships between corals and microalgae in such a way that corals expel their endosymbionts and bleach (Pogoreutz et al., 2018). Without benefits of symbiosis, corals experience higher mortality, become more sensitive to diseases, and decline. However, because strains of both host and endosymbiont vary in their sensitivity to higher temperatures, some of them can form a thermo‐tolerant symbiosis (Baker, 2003; Bay, Rose, Logan, & Palumbi, 2017; Grottoli et al., 2018; Little, Van Oppen, & Willis, 2004; Smith, Hume, Delaney, Wiedenmann, & Burt, 2017). Such examples already exist in zones with extreme temperatures, such as the Arabian/Persian Gulf (PAG) (Baker, Starger, McClanahan, & Glynn, 2004); hence, this symbiotic community can adapt, in principle, to changing environments despite a decrease in diversity of its participants. In a recent study of time series of species composition from various geographical areas, Blowes et al. (2019) made a prediction that with time climate change will mostly cause large‐scale reorganization of biodiversity rather than its global decline.
The challenges imposed by changing environments vary widely between ecosystems and between species within ecosystems, as, for example, the warming climate induces a diverse spectrum of interconnected changes in environmental conditions and weather patterns. Besides global climatic changes, there are numerous other examples of how anthropogenic activity disturbs ecosystems locally by environmental pollution, poaching, modification of geographical landscapes and many others factors (Laskar, Mahata, & Liang, 2016; Scheffers, Oliveira, Lamb, & Edwards, 2019). Adaptation to changing environments is also an important topic of research in the context of preventing the development of antibiotic and drug resistance. So, in one way or another, biological populations frequently face a changing environment, which is an important force in their evolution.
Adaptation to environmental changes has been the subject of both experimental and theoretical research. A nice example of an experimental study of evolution in an artificially created changing environment is the work on gradual bacterial adaptation to increasing doses of antibiotic on a giant Petri dish (Baym et al., 2016). Another example of experimental adaptation to a changing environment was observed in a study of phytoplankton biodiversity in increasingly warm water (Yvon‐Durocher et al., 2015). However, the slowness of evolutionary processes on human timescales sets strong restrictions of what can be done in such experiments.
Free of this limitation, theoretical studies are by far more numerous. For example in Botero, Weissing, Wright, and Rubenstein (2015), the authors found that certain types of climatic changes force populations to cross “tipping points” and to switch from one adaptive strategy to a qualitatively different one, which often leads to extinction despite the successful adaptation in the context of the previously used strategy. Another theoretical study has revealed the influence of genetic variance and spatial dispersal on the success of a given number of competing species subjected to changing conditions (Norberg, Urban, Vellend, Klausmeier, & Loeuille, 2012). The combination of high genetic variance and low spatial dispersal is the most conducive to adaptation and survival of the species under the effect of climatic change. In Jones (2008) and Northfield and Ives (2013), the authors have investigated how coevolution in pairs of species with various types of ecological interactions affects the process of adaptation to environmental changes. They argued that types of coevolution with conflicting interests help species to adapt, often counterintuitively, whereas types of coevolution with nonconflicting interests enhance the detrimental effect of climatic changes. These conclusions are corroborated by the studies specifically focused on predator–prey interactions (Mellard, de Mazancourt, & Loreau, 2015; Osmond, Otto, & Klausmeier, 2017), which demonstrate that under certain conditions, and especially when the predator–prey interaction trait is aligned with the direction of environmental change, predation increases adaptability and resilience.
The adaptive dynamics and individual‐based model described in Johansson (2008) and later adapted to different scenarios in many subsequent studies, predicts a decrease in diversity and possible complete extinction in the system of 1–3 competing species subject to an environmental change at a constant or fluctuating rate. An extension of the model (Johansson, 2008) was used to investigate multi‐faceted effects of asymmetric resource availability or competition between two species on the response to a changing environment (Van Den Elzen, Courtney, Kleynhans, & Otto, 2017). More complex scenarios of multi‐patch environment with migration (De Mazancourt, Johnson, & Barraclough, 2008) and cyclic changes in the environmental gradient (De Mazancourt et al., 2008) have also been investigated in the context of effects of the climate change on species diversity and population.
In this work, we take a somewhat different look at the influence of environmental changes on an evolving system. As is widely reported, the problem with environmental changes is often not so much the actual state of the environmental variable, such as the global temperature or the CO2 concentration, but the high and previously unseen rates at which these variables change. Thus, in this work we investigate how an ecosystem, modeled as a community of interacting and evolving species, reacts to environmental changes of various rates. Similarly to (Johansson, 2008), we focus on the particular case of competing species, ignoring for now other ecological interactions, and consider a diversifying community described by a logistic competition model. However, as an extension of (Johansson, 2008), we consider a more realistic scenario where the competition between individuals is controlled by more than one phenotypic traits. Previously, it was shown that in such systems, the number of traits or the dimension of phenotype space affects diversification, with higher dimensions leading to higher diversity (Doebeli & Ispolatov, 2017). As a community diversifies from low numbers of species, the rates of evolution and diversification slow down as the saturation level of diversity that the environment can sustain is reached. Higher rates of evolution and diversification can be reactivated only when the level of saturation decreases, which can happen with aromorphosis and an extension of the phenotypic space into higher dimensions, or through catastrophic events, leading to mass extinction (Ispolatov, Alekseeva, Alekseeva, & Doebeli, 2019).
However, it is not known which ecological and evolutionary processes unravel in such a system when external intervention, such as ongoing climate changes, continues indefinitely. A naive qualitative guess (which turns out to be correct) would be that if the rate of change associated with such an intervention is much smaller than some intrinsic adaptation rate of all species, the relative phenotypic distribution of the species would remain almost intact and all species would synchronously follow the environmental change with a certain lag. Yet it is hard to predict even qualitatively what happens when the rate of environmental changes increases, apart from the ultimate extinction of all species when environmental change is very fast. We therefore perform a systematic study of various ecological and evolutionary indicators of the evolving communities for a wide range of rates of environmental changes. To consider the most general case, we, similarly to Van Den Elzen et al. (2017), consider an asymmetric competition kernel, albeit in a different from Van Den Elzen et al. (2017) form. The evolutionary dynamics in multidimensional phenotype space with generally asymmetric competition is usually complicated (Doebeli & Ispolatov, 2017) and even unpredictable (Doebeli & Ispolatov, 2014). Thus, complimentary to many existing studies, we use a statistical approach, averaging results for each rate of environmental change over many simulated replicas.
2. METHODS
2.1. The model
Following Doebeli and Ispolatov (2017) and Ispolatov et al. (2019), we study a system that can be populated by a varying number of phenotypic species, each defined by its phenotype
Here and in the following all vector notations should have bar above the variable rather than below.
in D‐dimensional phenotype space. In monomorphic communities consisting of a single species with phenotype , the population size of that species at ecological equilibrium is given by the carrying capacity function , which is assumed to have the following form:
| (1) |
where determines the width of the carrying capacity. This function has its maximum value of 1 at the point that we call the center of the carrying capacity (CCC) . Thus, the population size of a monomorphic species is maximal if the phenotype of that species is equal to
Competition between two species with distinct phenotypes and is described by the competition kernel , so that the competitive effect of on is given by
| (2) |
There are two terms in the exponent of the competition kernel. Similarly to Van Den Elzen et al. (2017), we believe that in general the competition is nonsymmetric. Therefore, the first term represents the simplest nonsymmetric contribution to the competition, which may result in complex evolutionary dynamics, that is, cyclic or chaotic evolutionary trajectories. Since we expect the evolutionary dynamics to unravel around the CCC, we explicitly introduce the coordinates of CCC into the term . In our previous studies (Doebeli & Ispolatov, 2014, 2017; Ispolatov, Madhok, Madhok, & Doebeli, 2016), the CCC was fixed and positioned at zero, so the first term did not include its coordinates.
The second term in the exponent is the usual Gaussian competition kernel with width , reflecting the fact that species that are closer phenotypically compete more strongly with each other than species that are farther apart in phenotype space. In our simulations, we used and to ensure that the system is able to diversify from the initial state of one species to a community of coexisting phenotypes (Doebeli & Ispolatov, 2017; Ispolatov et al., 2016). Also as in Doebeli and Ispolatov (2017), the coefficients bij of the nonsymmetric part of the competition kernel were chosen randomly from a Gaussian distribution with width 1 and zero mean (see the end of this section for how this was implemented to obtain the simulation results).
Assuming that a community comprises m species with phenotypes in D‐dimensional phenotype space, where is the species index, the ecological dynamics of the density Nr of species r is given by the logistic equation
| (3) |
As a result of the logistic dynamics with constant external conditions, the population of each species converges to its equilibrium size . In the following, we call the state of the system, where all species have reached their , as the ecological equilibrium.
In the framework of adaptive dynamics (see, for example, Diekmann, 2002; Geritz, Mesze, & Metz, 1998), evolution occurs when species, each assumed to be monomorphic in its phenotype and at the ecological equilibrium, constantly generate initially rare mutants with uniformly random phenotypes that are close to but distinct from the parental phenotype. The derivation of adaptive dynamics is based on the separation of much faster ecological and normally slower evolutionary timescales, which normally holds very well. Mutants compete with the resident community for resources and try to invade it with a per capita growth rate defined by Equation (3), where self‐competition is neglected because of mutant's rarity, :
| (4) |
Here, is the phenotype of a mutant occurring in species r. The function defined in Equation (4) is known as invasion fitness. If the invasion fitness is positive, the mutant population will grow in the environment set by the resident community. If the invasion fitness is negative, the mutant population goes extinct. The selection gradient with components points in the direction of mutant with the highest growth rate. It is obtained by differentiating the invasion fitness with respect to the mutant phenotype and evaluating the derivative at the resident phenotype.
| (5) |
In general, the adaptive dynamics of phenotypes of a species is determined by the product of its selection gradient (5), which quantifies the selection pressure, and its mutational variance–covariance matrix, which describes the rate and size of mutations occurring in each species and their effects on the phenotypes. For simplicity, we assume there is no mutational covariance and that all traits in all species have the same mutation rate and mutational variance. To satisfy the last assumption, we implicitly rescale each direction in phenotype space such that all traits evolve at a universal rate equal to the population size times the selection gradient. Then, the adaptive dynamics of each phenotypic component , and is then given by
| (6) |
Further details of the model, including the procedure allowing species to diversify, are presented in the next section.
So far, this model has been defined in the same way as the one in (Doebeli & Ispolatov, 2017; Ispolatov et al., 2016, 2019 ). Here, however, we introduce environmental change by assuming that over time, new phenotypes become optimal for the current state of the changing environment. The optimal phenotype in our model is defined by the position of the CCC in the phenotypic space. Thus, similarly to Johansson (2008), Van Den Elzen et al. (2017), and Jones, 2008, the environmental changes are be implemented as the motion of the CCC and the carrying capacity itself in the phenotypic space, . Here, the vector determines the magnitude and direction of change of the CCC. While the maximum of the carrying capacity function moves in phenotype space at a constant rate , the general shape of the carrying capacity function, and, in particular, its width , stay the same in the moving frame of reference in phenotype space. In the simulations, an environmental change starts once an evolving community has reached a stationary state in the evolutionary dynamics with constant environment (Figure 2), as described in Doebeli and Ispolatov (2017) and Ispolatov et al. (2019). In the following, we denote this time as t*.
FIGURE 2.

Successive steps that are iterated in the simulations. Each iterative cycle advances the evolutionary time by a small increment. The merging and splitting steps are performed once every 10 time units during the evolutionary saturation of the system. Environmental change (movement of CCC) starts only after the system converges to a steady state with saturated diversity and the formation of new species ends
2.2. Simulation procedure
For every dimension , we prepare 30 replicate simulations, each with a distinct set of coefficients bij and initial conditions, randomly chosen from a D‐dimensional Gaussian distribution with width 1 and mean 0. Every replica then evolves with nonmoving CCC positioned at zero for time t* to converge to its stationary states. The evolutionary equilibration time t* was determined empirically and was found to noticeably increase with the dimension of phenotypic space, Figure 1. Thus, in the second stage of simulation, we “reset the clock” and consider the beginning of environmental change as the new initial time t = 0.
FIGURE 1.

The evolutionary time t* required for diversity saturation starting from the initial condition of one randomly located species. Around the time t*, the number of species m equilibrates
A run for each replica consists of many cycles of successive steps (Figure 2), where each cycle increments the evolutionary time by a small amount. An iteration starts with the ecological dynamics, where all species reach their ecological equilibrium according to the logistic dynamics (Equation 3). Evolutionary time stays constant during this step. If a species crosses the low population limit set equal to , it is assumed to be extinct and is dropped from the system. In the next step, the phenotypes of all species evolve according to the adaptive dynamics specified in Equation (6). Phenotypic changes in a single evolutionary time step are small enough to keep populations close to their ecological equilibrium (calculated in the previous step).
To model diversification, each 10 time units we split a randomly chosen species in halves separated by a very small distance (normally ). The direction of splitting is chosen randomly from the isotropic distribution. If conditions are favorable for evolutionary branching, the distance between the halves grows as a result of phenotypic dynamics, and the two “halves” become two separate species. Otherwise, that is, if the competitive interactions do not favor diversification and the halves do not move apart phenotypically, we merge them back right before the next round of splitting without any consequences to system behavior.
Both procedures of merging and splitting happen regularly every few iterations (in this order, so that split halves have time to diverge). In principle, if any two “not closely related” species come close in phenotypic distance at the time of merging, they would be merged as well, however, we have not observed such events in our simulations.
In the principal part of our simulations, we analyzed how saturated systems adapt to environmental changes. For each steady state replica, a new simulation run is starting with that replica as the initial condition and under the changing environment with a given rate VC and a random direction. The rates VC are selected to cover the range between 0.05 and 2 with the step 0.05. Before the beginning of environmental changes, we merge all species, separated by phenotypic distance marginally larger than the merging distance used in the diversification procedure, into distinct species, visible as circles in Figure 3 and corresponding videos. This is done to ensure that the population density Nr, which controls the adaptive dynamics evolutionary speed in Equation (6), corresponds to the integral population of a species, rather than to the meta‐populations of many split “halves,” created by our diversification procedure. The biological motivation behind this final merge is that each of those individual phenotypically close “halves” can produce a mutant that could take over the whole species. Using the usually smaller individual populations of “halves” as the factor Nr in Equation ((6), (7)) would have reduced the evolutionary speed and resulted in more difficult adaptation and earlier extinction. For the same reason, starting from the onset of environmental change, we switch off the procedure of formation of new species. In general, we do not expect the diversification of species under the pressure of environmental change. We further comment on this assumption in the Section 4.
FIGURE 3.

Snapshot of the saturated diversification at the beginning of environmental change t = 0 (a) and at t = 32 after the initial stage of adaptation to environmental changes of various rates (b–d) in two‐dimensional phenotypic space, ; The adaptation processes that led to these configurations can be seen in corresponding videos [Link], [Link], [Link], [Link] https://doi.org/10.6084/m9.figshare.12827054. In all three cases (b–d), the vector of environmental changes has the same direction to the upper left corner of the frame and is indicated by the red arrow. Dark gray circles show the location of different species in phenotype space, with the size of the circles representing the populations size, the red rhombus shows the location of the CCC. The coefficients bij and the initial conditions can be found in Appendix S1: Section 2
Once started, the environmental change continues at a constant rate VC for the time t* or until all species become extinct. If a system survives the effects of CCC motion for the time t*, it usually means that it reaches a new evolutionary steady state adapted to the constant environmental change. The results for each D and VC are averaged over survived species communities from those 30 runs, producing statistical data shown in Figure 4 for the final state and in Figure 5 for any arbitrary time t.
FIGURE 4.

The number of species m (a), the fraction of species that survived till t* (b), the total community population (c), the average per species population N av (d), the phenotypic variation across the community (e), and the time to total extinction (f) versus the speed of environmental change V C. For each value of V C, quantities in a–e were averaged only over systems that survived under the changing environment till the final time t*. The communities that underwent extinction before t* were completely excluded from the average. The extinction time in (f) was measured only in communities that went extinct before t*. Colors indicate the dimensions of phenotype space: blue for D = 1, red for D = 2, and green for D = 3. Values of t* for each dimensionality of the phenotype space are presented in Figure 1. To reveal the power‐law‐like nature of many dependencies, all figures are presented in log–log scale with shadows around lines indicating standard deviations. Dotted lines represent extinction threshold for each dimensionality, respectively
FIGURE 5.

Dynamics of average number of species m (row a), total population (row b), average population of a species (row c), and phenotypic variation across the community (row d) as a function of time after the onset of environmental change for 4 different values of . For each value of , the quantities in a–d were averaged only over systems that survived under the changing environment till the final time t*. The communities that underwent extinction before t* were completely excluded from the average. All plots are presented in semilogarithmic scale
The range of relevant CCC speed VC can be capped using the following simple analytical estimate for the maximum evolutionary speed that a single species could sustain (Johansson, 2008). The case of a single surviving species is often the final outcome of adaptation to sufficiently rapid environmental changes. If we ignore the asymmetric part of the competition kernel represented by the random coefficients bij in Equation (6), which could either reduce or increase the strength of competition in a generally unpredictable way, the remaining adaptive dynamics becomes quite simple. The evolutionary speed has components
| (7) |
Here, we have taken into account that the ecologically equilibrated single‐species population is equal to the corresponding carrying capacity. Assuming for simplicity that the CCC moves along the first phenotypic coordinate, we look for the maximum of u 1, differentiating (7) with respect to . The maximum is achieved at , and the corresponding maximum speed of species motion in phenotypic space is . This sets the upper limit on the sustainable velocity of CCC, which results from a combination between two trends: A faster motion of CCC makes the species trail further behind in phenotype space, thus generating a larger selection gradient. However, the further a species trails behind the CCC, the lower is its population, which makes mutations more rare. The combination of these two trends defines the maximum velocity at which the single species can evolve, which, in other words, is the maximum velocity of CCC that a species can follow at a steady state. In reality, due to the action of the asymmetric terms in the competition kernel, and due to interspecies competition, some species go extinct below this maximum CCC velocity, while others persist even in slightly faster changing environments. The latter happens when a particular combination of randomly chosen bij coefficients results in a stronger selection gradient in the direction of the VC.
2.3. Measuring properties of the system
To analyze the response of evolving communities to environmental change, in each run we measured the following system properties:
-
1
number of species in the system m;
-
2
total population of the system ;
-
3
average population of a species ;
-
4
phenotypic diversity of the system , defined as the average square distance of the phenotypic coordinates of all species weighted by their population sizes around the center of mass of the system , where
| (8) |
and
| (9) |
The quantity reflects how widely the phenotypes of the various species are separated from the center of mass of the system. It is a measure of phenotypic diversity in a community, but should not be confused with the number of species, since the phenotype distribution in systems with smaller numbers of species can nevertheless have a higher variance if the fewer species are more spread out in phenotype space;
-
5
fraction of survived species (10), where is the number of species in a replica before the initiation of environmental change;
-
6
time to extinction defined for systems that have not persisted till t* as the time when the last species dies out.
There are two basic ways in which the above quantities can be calculated to illustrate system behavior. First, they can be evaluated at the final time t* after the onset of environmental change for many different systems with the same control parameters (e.g., the same VC). For example, we calculate the average number of coexisting species at time t*, which normally corresponds to the new evolutionary steady state adapted to the environmental change, by averaging m at t* for many different systems. Second, these quantities can be studied as a function of time in any given simulation run, usually starting from the initiation of the movement of CCC, that is, from the beginning of the environmental change. For example, before starting the movement of CCC, , that is, the number of species at saturation. Once CCC starts to move, m usually change, reflecting the effect of environmental change on the previously saturated community. The distribution of properties of prepared saturated systems is summarized in Figure S1.
3. RESULTS
We analyzed the adaptation of 30 saturated systems, properties of which were analyzed previously (Doebeli & Ispolatov, 2017; Ispolatov et al., 2019), to environmental changes of various rates. For all those systems, the environmental change in the form of a moving CCC either forces the system to adapt and converge to a new quasi‐stationary state, or it leads to extinction of the whole community.
3.1. Adaptation to the CCC motion and convergence to a new quasi‐stationary state
When the rate of environmental change is not too high, after a transitory adaptation the system usually converges to a new quasi‐stationary state that follows the changing environment. Properties of such a quasi‐stationary state vary depending on the rate of environmental changes. In Figure 3 there is a two‐dimensional visualization of newly formed stationary configurations of the same community, adapting to different rates of VC. For this particular example in Figure 3, we used one direction of environmental change for all presented rates of VC to make visual comparison easier, in other simulations the direction was chosen randomly each time.
The final number of species m, the fraction of surviving species and the total population size (Figure 4a,c) generally decrease with increasing speed of environmental changes, VC. For a given value of VC, the number of species m and total population begin to decrease shortly after the onset of environmental change and after some time stabilize (despite the ongoing CCC movement), as illustrated in Figure 5a,b. The higher the VC is, the faster and larger this decrease occurs. Conversely, the average per species population in quasi‐stationary stage increases with increasing VC: as more species go extinct during the process of adaptation, the surviving ones become more ecologically successful due to experiencing less competition (Figures 4d and 5c). For large VC, we also observed scenarios, when during the adaptation first rapidly increased because of release from the competition and then fell down to a plateau due to increased distance between phenotypes of surviving species and CCC. Such a pattern can be seen on curves of , which correspond to in , and (Figure 5c).
The average value of phenotypic diversity, decreases for larger VC as well (Figure 4e), since larger rates of environmental change cause the loss of more species. Over the course of an individual simulation run, after the onset of environmental change first decreases with time and then approaches a stationary state. For very small values of VC, phenotypic dispersion may stay at the level of saturated system without environmental change or even exceed it despite a reduction in the number of species m (Figure 5d). Such behavior of indicates that phenotypic spread of the surviving species around the center of mass becomes wider.
Typically, the time required to reach a new evolutionarily stationary state is small relative to the saturation time t*. The higher the rate of environmental change VC is, the less time is required. The timescale of Figure 5 is two times shorter than the timescale required for initial equilibration (Figure 1).
Even for small values of VC, the entire evolving community can go extinct. Naturally, such events become more likely for larger rates of environmental changes VC.
In our simulations in any dimensionality of the phenotypic space, there is a value of VC, denoted by dotted lines on Figure 4a,e, for which none of our replicas survived. We call this value the extinction threshold, . The fraction of surviving communities as a function of VC and the extinction threshold value of VC are shown in Figure S2b of the Appendix S1. Generally, the higher the rate of environmental change, the more likely extinction occurs. Obviously, the value may vary depending on the number of replicates and chosen t*; however, we still can compare values between phenotype spaces of different dimensionalities, since they were obtained using the same conditions.
Times to extinction t ext generally become shorter for larger values of VC (Figure 4f). It varies largely among replicates and is affected by particular properties of the system, such as bij coefficients or the direction of VC vector relative to the system's phenotypic configuration.
3.2. The influence of phenotypic complexity on adaptation and extinction
Having more phenotypic dimensions complicates the adaptation to environmental changes. The surviving species in low‐dimensional phenotype space have larger populations N av (Figure 4d), and even the overall population of the community N tot of a low‐dimensional system is larger than that of a higher‐dimensional one for high rates of VC (Figure 4c). Furthermore, the time required for the community to reach the quasi‐stationary state becomes longer for higher phenotypic complexity: the parameters of systems that survive the environmental change usually reach the new steady state plateau faster in low‐dimensional systems than in high‐dimensional ones (Figure 5). However, on average, the communities with more “simple” phenotypes go extinct faster when subjected to changing environmental conditions, and we observe this effect for small and for large values of VC (Figure 4f).
Moreover, the extinction threshold becomes lower for increasing phenotypic complexity, which means that low‐dimensional communities are able to withstand rates of environmental changes that would lead to extinction of the whole community in high‐dimensional phenotype spaces (Appendix S1: Figure S2b). A mechanistic explanation for the observed reduction of the extinction threshold is that in higher dimensions, the population size Nr of each species in the community is generally smaller. In higher‐dimensional systems, each species has on average more competitors due to larger number of “nearest neighbors” with slightly different phenotypes. Smaller population sizes mean lower per species mutation rates, and hence slower adaptation to changing environments (Equation 6).
To check the robustness of these results, we have repeated these simulations for fewer than 30 replicas for two other values of the width of the competition kernel, and . Even though the saturated level of diversity varies strongly with (Doebeli & Ispolatov, 2017), the trends shown in Figures 4 and 5 remain qualitatively unchanged.
3.3. Comparison to individual‐based simulations
To verify the robustness of our Adaptive Dynamics procedure, we, following advices from Reviewers, performed an Individual‐based simulation of the same evolving system subject to environmental change. Because individual‐based simulations are intrinsically slower than the adaptive dynamics model and repeating the statistical analysis is well beyond our computational capacity, we limited our scope to the single example shown in Figure 3. Specifically, we considered an ensemble of individuals with birth rate equal to one and death rate given by the logistic competition term in Equation (3). The carrying capacity was multiplied by the factor , which set the scale for the total number of individuals in the community. Birth and death events were executed via the Gillespie algorithm, each offspring was offset by a randomly distributed mutation sampled from a uniform distribution with the standard deviation . The magnitude of was rescaled to take into account the actual coefficient that should have been present in Equation (6) if it were derived from the corresponding individual‐based process. Thus, to make individual‐based simulations similar to the adaptive dynamics model with , the individual‐based CCC speed becomes . In Figure 6, we show the snapshots of distributions of individuals separately (panels a and b) and clustered into species (panels c and d) immediately after equilibration (panels a and c) and after a transitory period (roughly corresponding to that in Figure 3) after the onset of environmental changes (panels b and d). A comparison between Figure 3 (panels a and c) and 6 supports the conclusion that our adaptive dynamics model is satisfactory reproducing the predictions of the “first principle” individual‐based simulations. We further comment on the correspondence between these two methods and the intrinsic limitations of our adaptive dynamics scheme in the Section 4.
FIGURE 6.

Snapshot of the saturated diversification (a, c) and adaptation to environmental changes (b, d) in individual‐based simulation. The processes that led to these configurations can be seen in corresponding videos [Link], [Link], [Link], [Link] https://doi.org/10.6084/m9.figshare.12827054. The vector of environmental changes has the direction to the upper left corner of the frame and is indicated by the red arrow. In a and b, blue circles show individuals in phenotype space, in c and d, blue circles show clustered populations of phenotypically close individuals, and with the size of the circles representing the number of individuals, the red rhombus shows the location of the CCC. The details of simulations are presented in the text. The coefficients bij and the initial conditions can be found in Appendix S1: Section 2
4. DISCUSSION
We have investigated the evolutionary dynamics in logistic competition models under the continual environmental change, which was implemented by assuming that the optimal phenotype, defined by the maximum of the carrying capacity function moves at a constant speed in phenotype space. We have analyzed the effect of such environmental change on various statistical ecological and evolutionary properties of the adapting communities, depending on the rate of environmental change and on the dimension of phenotype space.
Our model is based on several assumptions, which limit us in our understanding of the full picture of adaptive evolution. For example, we assume that there is no mutational covariance and that all traits in all species have the same mutation rate. We do not distinguish phenotypic plasticity and genetic evolution, which are both important for evolution in changing environment (Ho & Zhang, 2018). In our simulations, interaction of species is limited by the competition and we do not consider numerous factors, which play an important role in evolutionary processes, such as population structure and genetic drift (Orr, 2005). We also make assumptions, which seem intrinsic to our adaptive dynamics simulation scheme, that populations of species are in their ecological equilibrium and do not diversify under the pressure of environmental changes. However, in our individual‐based simulations we observed a few times that such diversification under environmental change does happen, at least transitory. An example is shown in the videos associated with Figure 6.
These assumptions are partially justified by the fact that our principal goal is to consider the behavior of species communities on large macroevolutionary timescales. On such timescales, species undergo major phenotypic changes, which exceed the scale of phenotypic plasticity and require much more time than equilibration of species populations. A few transitory diversification events affect neither the long‐term evolution dynamics, nor the final steady state distribution of surviving species. Another justification is that we aimed to investigate global effects of environmental changes on species communities. For this goal, the implicitly performed by us rescaling of phenotypic space in a way that all traits evolve at a rate equal to the population size times the selection gradient appears to be safe and not to introduce any noticeable artifacts.
Another limitation, also intrinsic to the standard adaptive dynamics protocols, is the assumption of continuous evolution of phenotypes instead of discrete jumps caused by individual mutations. Naturally, since real mutations occur stochastically in time and carry phenotypic effects of various sizes, the adaptive dynamics methods are not well‐suited to model evolution on fine temporal and phenotypic scales. Yet the temporal and phenotypical stochasticity of mutations may also affect even the large‐scale evolutionary responses. In (Matuszewski, Hermisson, & Kopp, 2014) it was shown that an interplay between the decrease in the fraction of mutations that go in the direction “right” for adaptation with the increase of dimensionality D, and the increase in the “usefulness” of mutations with larger phenotypic effect (which make bigger steps to catch the CCC which moved farther because of the rarity of useful mutations) results in lesser adaptability of more complex phenotypes to environmental changes. This effect is complementary to our model and observations, yet works in the same directions.
In our models, the crucial factor determining whether an evolving community will survive in the long run is the rate of environmental change. We found that in each dimensionality of phenotype space there is a threshold rate of environmental change above which none of our replicate communities survived. However, when the rate of change is below the threshold value, many communities are able to adapt to environmental changes, and the evolving community can find a new quasi‐stationary state. Such adaptation requires much less time compared with the time it takes a community to reach the prechange level of diversity from a single ancestral species. To adapt, the phenotype of a species generally has to evolve in step with the movement of the center of the carrying capacity. Species that fail to track the carrying capacity and trail too far behind, where their carrying capacity falls significantly, suffer big population reduction and produce too few mutants to keep up with the changing environment and eventually go extinct. Similarly, species that trail too far behind their initial intraspecies phenotypic position, may experience too strong competition, which also results in the similar reduction of population, inability to produce enough mutants, and subsequent extinction. These effects were studied in great detail in simpler one‐dimensional models with 1–3 species (Johansson, 2008; Van Den Elzen et al., 2017). Our studies thus confirm that such evolutionary patterns play the essential role in the response of higher‐dimensional and higher‐diversity systems to environmental change as well. The effect of reduction in the number of species, pronounced in our simulation, was also observed in Johansson (2008) and Van Den Elzen et al. (2017), albeit on a lesser number (2–3) of initial species. These and other similarities between our results and those of Johansson (2008) and Van Den Elzen et al. (2017) signify broad universality of the observed dynamical evolutionary pattern given the differences in methodologies: We used adaptive dynamics with clonal reproduction and constant carrying capacity amplitude , rather than individual‐based simulation with sexual reproduction and adjustable K 0 used by Johansson (2008). The functional forms of the competition function and carrying capacity were different as well. Nevertheless, even though one‐dimensional systems were also included in our study, because of the difference in methodologies it is hard to go beyond a simple qualitative comparison between the presented and published results.
The rate of environmental change also affects the composition of newly formed quasi‐stationary states. The higher the rate of environmental change is, the lower is the average number of coexisting species and the total population size of surviving communities. However, surviving species get an ecological advantage: because of the reduction in the number of competitors, the populations of each surviving species can become larger than in the case of stable environmental conditions. Thus, generally the fewer species are left in the surviving community, the larger their population size becomes. This results are consistent with observations from studies of experimental evolution. In famous experiment with MEGA‐plate, the bacterial clones, which were able to adapt to higher concentration of antibiotics, became dominant in population, while their fitness, measured as the growth rate, was much smaller than the average fitness of the initial community (Baym et al., 2016).
Interestingly, phenotypic complexity makes communities less resilient to changes in the environment. In high‐dimensional phenotypic spaces, surviving systems require more time to adapt, and hence are less able to resist changes. Hence, the extinction threshold, below which no systems survive, appears at lower rates of environmental change. According to our previous studies of macroevolutionary processes (Doebeli & Ispolatov, 2014, 2017; Ispolatov et al., 2019), “complex phenotypes” have smaller populations and lower rates of evolution, which makes adaptation challenging. In these models, evolution under constant environmental conditions results in gradual expansion of phenotypic space, and more complex, higher‐dimensional phenotypes evolve only once diversity in lower dimensions has saturated (Ispolatov et al., 2019). Conversely, changing environments tend to reduce the average number of phenotypic dimensions in biological systems, since less complex species are more likely to survive.
The evolving communities that have become less diverse due to the environmental change will rediversify and reach previous saturation levels if the environment ceases to change. This happens via the same scenario as the initial diversification, illustrated, for example, in Figure 3 and corresponding videos. However, despite the similarity between the new phenotypic composition and the one existing before the onset of environmental change, the genealogical history and composition of the rediversified community may be very different from the composition of the community that existed before the environmental change was initiated.
Thus, such periods of reduction of diversity caused by environmental changes were probably followed by periods of resaturation and resulted in evolution of entirely novel phenotypes. In terms of our model of evolution of complex phenotypes (Doebeli & Ispolatov, 2017; Ispolatov et al., 2019), where species have a choice to diversify in the same phenotypic space or inhabit a new phenotypic dimension, such environmental changes would then likely generate new bouts of rapid diversification leading to saturated communities occupying higher‐dimensional phenotype spaces. We plan to include such dramatic evolutionary events in our future models of evolution of complex phenotypes (Ispolatov et al., 2019).
CONFLICT OF INTEREST
None declared.
AUTHOR CONTRIBUTION
Evgeniia Alekseeva: Conceptualization (supporting); Data curation (lead); Formal analysis (lead); Funding acquisition (equal); Investigation (lead); Methodology (equal); Project administration (equal); Resources (equal); Software (lead); Supervision (supporting); Validation (equal); Visualization (lead); Writing‐original draft (lead); Writing‐review & editing (lead). Michael Doebeli: Conceptualization (equal); Data curation (supporting); Formal analysis (equal); Funding acquisition (equal); Investigation (equal); Methodology (equal); Project administration (equal); Resources (equal); Software (supporting); Supervision (supporting); Validation (equal); Visualization (supporting); Writing‐original draft (equal); Writing‐review & editing (equal). Iaroslav Ispolatov: Conceptualization (equal); Data curation (supporting); Formal analysis (equal); Funding acquisition (equal); Investigation (equal); Methodology (equal); Project administration (equal); Resources (equal); Software (equal); Supervision (equal); Validation (equal); Visualization (supporting); Writing‐original draft (equal); Writing‐review & editing (equal).
Supporting information
Figure S1
Figure S2
Figure S3
Figure S4
Video S1
Video S2
Video S3
Video S4
Appendix S1
ACKNOWLEDGMENT
I.I. acknowledges support from DICYT project 041931Y. E.A. acknowledges support from SkolTech Academic Mobility Program. M.D. was supported by NSERC, Canada.
Alekseeva E, Doebeli M, Ispolatov I. Evolutionary adaptation of high‐diversity communities to changing environments. Ecol Evol. 2020;10:11941–11953. 10.1002/ece3.6695
Contributor Information
Evgeniia Alekseeva, Email: evg.alekseeva93@gmail.com.
Iaroslav Ispolatov, Email: jaros007@gmail.com.
DATA AVAILABILITY STATEMENT
Codes and averaged results of simulations are available at https://github.com/EvgeniiaAlekseeva/Climate.
REFERENCES
- Baker, A. C. (2003). Flexibility and specificity in coral‐algal symbiosis: Diversity, ecology, and biogeography of Symbiodinium. Annual Review of Ecology, Evolution, and Systematics, 34(1), 661–689. [Google Scholar]
- Baker, A. C. , Starger, C. J. , McClanahan, T. R. , & Glynn, P. W. (2004). Coral reefs: Corals’ adaptive response to climate change. Nature, 430(7001), 741. [DOI] [PubMed] [Google Scholar]
- Bay, R. A. , Rose, N. H. , Logan, C. A. , & Palumbi, S. R. (2017). Genomic models predict successful coral adaptation if future ocean warming rates are reduced. Science Advances, 3(11), e1701413. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Baym, M. , Lieberman, T. D. , Kelsic, E. D. , Chait, R. , Gross, R. , Yelin, I. , & Kishony, R. (2016). Spatiotemporal microbial evolution on antibiotic landscapes. Science, 353(6304), 1147–1151. 10.1126/science.aag0822 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Blowes, S. A. , Supp, S. R. , Antão, L. H. , Bates, A. , Bruelheide, H. , Chase, J. M. , … Dornelas, M. (2019). The geography of biodiversity change in marine and terrestrial assemblages. Science, 366(6463), 339–345. 10.1126/science.aaw1620 [DOI] [PubMed] [Google Scholar]
- Botero, C. A. , Weissing, F. J. , Wright, J. , & Rubenstein, D. R. (2015). Evolutionary tipping points in the capacity to adapt to environmental change. Proceedings of the National Academy of Sciences of the United States of America, 112(1), 184–189. 10.1073/pnas.1408589111 [DOI] [PMC free article] [PubMed] [Google Scholar]
- De Mazancourt, C. , Johnson, E. , & Barraclough, T. G. (2008). Biodiversity inhibits species’ evolutionary responses to changing environments. Ecology Letters, 11(4), 380–388. 10.1111/j.1461-0248.2008.01152.x [DOI] [PubMed] [Google Scholar]
- Diekmann, O. (2002). A beginners guide to adaptive dynamics In Summer school on mathematical biology, Banach Center Publications 63, 63–100. Warsaw, Poland: Institute of Mathematics Polish Academy of Sciences; https://dspace.library.uu.nl/bitstream/handle/1874/10648/Diekman_04_A-BEGINNER'S-GUIDE-TO-ADAPTIVE-DYNAMICS.pdf?sequence=2 [Google Scholar]
- Doebeli, M. , & Ispolatov, I. (2014). Chaos and unpredictability in evolution. Evolution, 68(5), 1365–1373. 10.1111/evo.12354 [DOI] [PubMed] [Google Scholar]
- Doebeli, M. , & Ispolatov, I. (2017). Diversity and coevolutionary dynamics in high‐dimensional phenotype spaces. The American Naturalist, 189(2), 105–120. 10.1086/689891 [DOI] [PubMed] [Google Scholar]
- Geritz, S. A. H. , Kisdi, É. , Mesze, G. , & Metz, J. A. J. (1998). Evolutionarily singular strategies and the adaptive growth and branching of the evolutionary tree. Evolutionary Ecology, 12(1), 35–57. 10.1023/A:1006554906681 [DOI] [Google Scholar]
- Griffen, B. D. (2018). Modeling the metabolic costs of swimming in polar bears (Ursus maritimus). Polar Biology, 41(3), 491–503. 10.1007/s00300-017-2209-x [DOI] [Google Scholar]
- Grottoli, A. G. , Martins, P. D. , Wilkins, M. J. , Johnston, M. D. , Warner, M. E. , Cai, W. J. , … Schoepf, V. (2018). Coral physiology and microbiome dynamics under combined warming and ocean acidification. PLoS One, 13(1), e0191156. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gynther, I. , Waller, N. , & Leung, L. K. P. (2016). Confirmation of the extinction of the Bramble Cay melomys Melomys rubicola on Bramble Cay, Torres Strait: Results and conclusions from a comprehensive survey in August‐September 2014. Queensland Government. [Google Scholar]
- Ho, W.‐C. , & Zhang, J. (2018). Evolutionary adaptations to new environments generally reverse plastic phenotypic changes. Nature Communications, 9(1), 1–11. 10.1038/s41467-017-02724-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ispolatov, I. , Alekseeva, E. , & Doebeli, M. (2019). Competition‐driven evolution of organismal complexity. PLoS Computational Biology, 15(10), e1007388. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ispolatov, I. , Madhok, V. , & Doebeli, M. (2016). Individual‐based models for adaptive diversification in high‐ dimensional phenotype spaces. Journal of Theoretical Biology, 390, 97–105. 10.1016/j.jtbi.2015.10.009 [DOI] [PubMed] [Google Scholar]
- Johansson, J. (2008). Evolutionary responses to environmental changes: How does competition affect adaptation? Evolution, 62(2), 421–435. [DOI] [PubMed] [Google Scholar]
- Jones, A. G. (2008). A theoretical quantitative genetic study of negative ecological interactions and extinction times in changing environments. BMC Evolutionary Biology, 8(1), 119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Laskar, A. H. , Mahata, S. , & Liang, M.‐C. (2016). Identification of anthropogenic CO2 using triple oxygen and clumped isotopes. Environmental Science & Technology, 50(21), 11806–11814. [DOI] [PubMed] [Google Scholar]
- Little, A. F. , Van Oppen, M. J. H. , & Willis, B. L. (2004). Flexibility in algal endosymbioses shapes growth in reef corals. Science, 304(5676), 1492–1494. 10.1126/science.1095733 [DOI] [PubMed] [Google Scholar]
- Lone, K. , Kovacs, K. M. , Lydersen, C. , Fedak, M. , Andersen, M. , Lovell, P. , & Aars, J. (2018). Aquatic behavior of polar bears (Ursus maritimus) in an increasingly ice‐free Arctic. Scientific Reports, 8(1), 1–12. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Maclean, I. M. D. , & Wilson, R. J. (2011). Recent ecological responses to climate change support predictions of high extinction risk. Proceedings of the National Academy of Sciences of the United States of America, 108(30), 12337–12342. 10.1073/pnas.1017352108 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Matuszewski, S. , Hermisson, J. , & Kopp, M. (2014). Fisher’s geometric model with a moving optimum. Evolution, 68(9), 2571–2588. 10.1111/evo.12465 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mellard, J. P. , de Mazancourt, C. , & Loreau, M. (2015). Evolutionary responses to environmental change: Trophic interactions affect adaptation and persistence. Proceedings of the Royal Society B: Biological Sciences, 282(1805), 20141351. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Norberg, J. , Urban, M. C. , Vellend, M. , Klausmeier, C. A. , & Loeuille, N. (2012). Eco‐evolutionary responses of biodiversity to climate change. Nature Climate Change, 2(10), 747. [Google Scholar]
- Northfield, T. D. , & Ives, A. R. (2013). Coevolution and the effects of climate change on interacting species. PLoS Biology, 11(10), e1001685. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Obbard, M. E. , Cattet, M. R. L. , Howe, E. J. , Middel, K. R. , Newton, E. J. , Kolenosky, G. B. , … Greenwood, C. J. (2016). Trends in body condition in polar bears (Ursus maritimus) from the Southern Hudson Bay subpopulation in relation to changes in sea ice. Arctic Science, 2(1), 15–32. [Google Scholar]
- Orr, H. A. (2005). The genetic theory of adaptation: A brief history. Nature Reviews Genetics, 6(2), 119–127. 10.1038/nrg1523 [DOI] [PubMed] [Google Scholar]
- Osmond, M. M. , Otto, S. P. , & Klausmeier, C. A. (2017). When predators help prey adapt and persist in a changing environment. The American Naturalist, 190(1), 83–98. 10.1086/691778 [DOI] [PubMed] [Google Scholar]
- Pagano, A. M. , Durner, G. M. , Rode, K. D. , Atwood, T. C. , Atkinson, S. N. , Peacock, E. , … Williams, T. M. (2018). High‐energy, high‐fat lifestyle challenges an Arctic apex predator, the polar bear. Science, 359(6375), 568–572. 10.1126/science.aan8677 [DOI] [PubMed] [Google Scholar]
- Pogoreutz, C. , Rädecker, N. , Cárdenas, A. , Gärdes, A. , Wild, C. , & Voolstra, C. R. (2018). Dominance of Endozoicomonas bacteria throughout coral bleaching and mortality suggests structural inflexibility of the Pocillopora verrucosa microbiome. Ecology and Evolution, 8(4), 2240–2252. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Scheffers, B. R. , Oliveira, B. F. , Lamb, I. , & Edwards, D. P. (2019). Global wildlife trade across the tree of life. Science, 366(6461), 71–76. 10.1126/science.aav5327 [DOI] [PubMed] [Google Scholar]
- Smith, E. G. , Hume, B. C. C. , Delaney, P. , Wiedenmann, J. , & Burt, J. A. (2017). Genetic structure of coral‐Symbiodinium symbioses on the world’s warmest reefs. PLoS One, 12(6), e0180169. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tartu, S. , Lille‐Langøy, R. , Størseth, T. R. , Bourgeon, S. , Brunsvik, A. , Aars, J. , … Routti, H. (2017). Multiple‐stressor effects in an apex predator: Combined influence of pollutants and sea ice decline on lipid metabolism in polar bears. Scientific Reports, 7(1), 1–12. 10.1038/s41598-017-16820-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Trisos, C. H. , Merow, C. , & Pigot, A. L. (2020). The projected timing of abrupt ecological disruption from climate change. Nature, 580(7804), 496–501. [DOI] [PubMed] [Google Scholar]
- Urban, M. C. (2015). Accelerating extinction risk from climate change. Science, 348(6234), 571–573. 10.1126/science.aaa4984 [DOI] [PubMed] [Google Scholar]
- Van Den Elzen, C. L. , Kleynhans, E. J. , & Otto, S. P. (2017). Asymmetric competition impacts evolutionary rescue in a changing environment. Proceedings of the Royal Society B: Biological Sciences, 284(1857), 20170374. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Whiteman, J. P. , Harlow, H. J. , Durner, G. M. , Regehr, E. V. , Rourke, B. C. , Robles, M. , … Ben‐David, M. (2017). Polar bears experience skeletal muscle atrophy in response to food deprivation and reduced activity in winter and summer. Conservation Physiology, 5(1), cox049. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yvon‐Durocher, G. , Allen, A. P. , Cellamare, M. , Dossena, M. , Gaston, K. J. , Leitao, M. , … Trimmer, M. (2015). Five years of experimental warming increases the biodiversity and productivity of phytoplankton. PLoS Biology, 13(12), e1002324. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Figure S1
Figure S2
Figure S3
Figure S4
Video S1
Video S2
Video S3
Video S4
Appendix S1
Data Availability Statement
Codes and averaged results of simulations are available at https://github.com/EvgeniiaAlekseeva/Climate.
