Skip to content

Instantly share code, notes, and snippets.

View carlosal1015's full-sized avatar
🇵🇪
Studying mathematics

Oromion carlosal1015

🇵🇪
Studying mathematics
View GitHub Profile
@carlosal1015
carlosal1015 / euler.py
Last active June 7, 2024 16:36
Euler method and Runge Kutta 4 Burden example
r"""
Euler method 5.9
w(0) = alpha
w(i + 1) = w(i) + h * f(t_i, w(i))
w(0 + 1) = w(0) + h * f(t_0, w(0))
t_0 = a + 0 * h = a
t_i = a + i * h, i = 0,..., N
"""
a = 0
openfoam-com E: ELF files outside of a valid path ('opt/').
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/DPMDyMFoam') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/DPMFoam') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/FLMAToSurface') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/FMSToSurface') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/FMSToVTK') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/MPPICDyMFoam') lacks FULL RELRO, check LDFLAGS.
openfoam-com W: ELF file ('opt/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/bin/MPPICFoam') lacks FULL RELRO, check LDFLAGS.
openfoam-co
#!/bin/bash
echo $PWD
@carlosal1015
carlosal1015 / deal-ii-9.5.1-petsc-complex.log
Created December 30, 2023 13:06
deal.II 9.5.1 log with PETSC 3.20.2 with complex scalars
This file has been truncated, but you can view the full file.
2023-12-30T02:11:52.0472629Z Requested labels: ubuntu-22.04
2023-12-30T02:11:52.0472955Z Job defined at: cpp-review-dune/introductory-review/.github/workflows/xeus-cling-deal-ii.yml@refs/heads/main
2023-12-30T02:11:52.0473059Z Waiting for a runner to pick up this job...
2023-12-30T02:11:52.3199410Z Job is waiting for a hosted runner to come online.
2023-12-30T02:11:56.4907628Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
2023-12-30T02:11:58.6201212Z Current runner version: '2.311.0'
2023-12-30T02:11:58.6225538Z ##[group]Operating System
2023-12-30T02:11:58.6226195Z Ubuntu
2023-12-30T02:11:58.6226658Z 22.04.3
2023-12-30T02:11:58.6227019Z LTS
@carlosal1015
carlosal1015 / squash.md
Created August 24, 2023 17:26 — forked from lpranam/squash.md
How to squash commits

What is squashing?

Squashing is a process in which we squeeze multiple commits into one pretending it is only a single commit.

Basically squashing commits means we are rewriting the history of commits to make them look like single commit.

squash-diagram.jpg

Why squashing commits is necessary?

This file has been truncated, but you can view the full file.
2023-08-02T23:43:58.8694009Z #9 2.206 Sync Dependency (15): systemd-sysvcompat-254-1, gcc-libs-13.2.1-2, glibc-2.37-4, libsysprof-capture-3.48.0-3, libarchive-3.7.1-1, systemd-libs-254-1, gcc-13.2.1-2, libtool-2.4.7+4+g1ec8fa28-6, binutils-2.41-1, mpfr-4.2.0.p12-2, linux-api-headers-6.4-1, licenses-20230729-1, openssl-3.1.2-1, libelf-0.189-2, systemd-254-1
2023-08-02T23:43:58.8695793Z #9 2.223 :: Synchronizing package databases...
2023-08-02T23:43:59.3188979Z #9 2.669 core downloading...
2023-08-02T23:43:59.3189717Z #9 2.669 extra downloading...
2023-08-02T23:43:59.3190432Z #9 2.669 multilib downloading...
2023-08-02T23:43:59.3191411Z #9 2.669 :: Starting full system upgrade...
2023-08-02T23:43:59.4382231Z #9 2.918 resolving dependencies...
2023-08-02T23:43:59.5880025Z #9 2.921 looking for conflicting packages...
2023-08-02T23:43:59.5882514Z #9 2.926
2023-08-02T23:43:59.5885900Z #9 2.926 Packages (15) binutils-2.41-1 gcc-13.2.1-2 gcc-libs-13.2.1-2 glibc-2.37-4 libarchive-3.7.1-1 libelf-0.189-2 libsy
@carlosal1015
carlosal1015 / fixed_point.py
Created July 11, 2023 14:44
Fixed point (scalar and vectorial)
from math import sqrt
"""
[ f(x) = g(x) - x = 0 ] ==> x = g(x), x es punto fijo de g
punto_fijo = 1.365230013
print(abs(g_1(punto_fijo) - punto_fijo))
"""
def fixed_point(f, x0, eps = 1e-5, max_iteraciones = 20):
@carlosal1015
carlosal1015 / deal-ii-9.5.0-kokkos.txt
Last active July 10, 2023 23:34
deal.II 9.5.0 log
:: Synchronizing package databases...
core downloading...
extra downloading...
multilib downloading...
:: Searching databases for updates...
:: 3 packages to upgrade/install.
3 core/gpgme 1.20.0-3 -> 1.21.0-1
2 core/groff 1.22.4-10 -> 1.23.0-1
1 core/iana-etc 20230524-1 -> 20230629-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
From 0bf5e073be39658d9e75c65e1af3ec0579b76c51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Aznar=C3=A1n=20Laos?= <caznaranl@uni.pe>
Date: Fri, 2 Jun 2023 11:22:32 -0500
Subject: [PATCH] Add gcc 13 compatibility patch
---
.SRCINFO | 2 ++
PKGBUILD | 12 ++++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
.ipynb_checkpoints/