A method for producing a heat exchanger having a housing with a housing wall and a housing interior at least regionally delimited by the housing wall, and with a fluid inlet region for introducing a first fluid of at least two fluids into the housing interior and a fluid outlet region for discharging the first fluid from the housing interior, wherein at least two partitions are accommodated at least predominantly in the housing interior and at least regionally delimit a fluid-receiving space through which a second fluid of the at least two fluids flows, wherein the at least two partitions are connectable to one another at least at a joining region along edges of each of the at least two partitions and assigned to the fluid inlet region and adjoining the fluid-receiving space in a fluid main flow direction of the first fluid,
- the method comprising:
- forming at least one deformation of each the at least two partitions at least in a joining sub-region of the joining region along the edges of each of the at least two partitions, the joining sub-region being spaced apart from the connecting region, wherein the at least one deformation is provided for reducing mechanical stresses at the connecting region resulting from a temperature-induced change in length of the joining region, wherein the at least one deformation of each of the at least two partitions are deformed in a same direction;
- and
- joining the at least two partitions at the joining region after the at least one deformation has been formed such that the at least two partitions are continuously connected to one another along an entirety of each edge spanning across each of the at least one deformation of each of the at least two partitions.